Unverified Commit 2ff70eb6 authored by Konrad Malik's avatar Konrad Malik
Browse files

mise: 2025.1.6 -> 2025.2.0

cacert needed for new tests and during runtime (--version fails without it)
parent b8685d0b
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  git,
  pkg-config,
  openssl,
  cacert,
  Security,
  SystemConfiguration,
  usage,
@@ -22,21 +23,22 @@

rustPlatform.buildRustPackage rec {
  pname = "mise";
  version = "2025.1.6";
  version = "2025.2.0";

  src = fetchFromGitHub {
    owner = "jdx";
    repo = "mise";
    rev = "v${version}";
    hash = "sha256-eMKrRrthV37ndsF47jjNxigsJ5WDsCDCit9J88l5dHE=";
    hash = "sha256-mZZBazE8QCaz3osbLoeaIHa7tsGji6B4UkaMlKAvF0M=";
  };

  cargoHash = "sha256-Mh7vyIVkQ0N1dYD4KVue0eiBm+z0JFPt89qYpu+wVd0=";
  cargoHash = "sha256-ptkzkzOl2gd67GYlm25FNEDRACIeIptTwN3kcHyxtw0=";

  nativeBuildInputs = [
    installShellFiles
    pkg-config
  ];

  buildInputs =
    [ openssl ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
@@ -65,6 +67,8 @@ rustPlatform.buildRustPackage rec {
      --replace-fail 'cmd!("direnv"' 'cmd!("${lib.getExe direnv}"'
  '';

  nativeCheckInputs = [ cacert ];

  checkFlags = [
    # last_modified will always be different in nix
    "--skip=tera::tests::test_last_modified"
@@ -92,7 +96,9 @@ rustPlatform.buildRustPackage rec {
  passthru = {
    updateScript = nix-update-script { };
    tests = {
      version = testers.testVersion { package = mise; };
      version = (testers.testVersion { package = mise; }).overrideAttrs (old: {
        nativeBuildInputs = old.nativeBuildInputs ++ [ cacert ];
      });
      usageCompat =
        # should not crash
        runCommand "mise-usage-compatibility"