Commit 14789e1e authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

mago: use `versionCheckHook`

parent e66f3eb1
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -4,8 +4,7 @@
  fetchFromGitHub,
  pkg-config,
  openssl,
  testers,
  mago,
  versionCheckHook,
}:

rustPlatform.buildRustPackage (finalAttrs: {
@@ -30,13 +29,9 @@ rustPlatform.buildRustPackage (finalAttrs: {

  buildInputs = [ openssl ];

  passthru = {
    tests.version = testers.testVersion {
      package = mago;
      command = "mago --version";
      version = "mago ${version}";
    };
  };
  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";

  meta = {
    changelog = "https://github.com/carthage-software/mago/releases/tag/${finalAttrs.version}";