Unverified Commit 2b9811b1 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

rune: add versionCheckHook (#513147)

parents 9a19d7f2 aa8de145
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  rustPlatform,
  fetchCrate,
  versionCheckHook,
  nix-update-script,
}:

@@ -21,6 +22,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
    RUNE_VERSION = finalAttrs.version;
  };

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

  passthru.updateScript = nix-update-script { };

  meta = {
@@ -31,7 +35,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
      asl20
      mit
    ];
    maintainers = [ ];
    maintainers = [ lib.maintainers.progrm_jarvis ];
    mainProgram = "rune";
  };
})