cargo-aoc: use versionCheckHook (#377069)

This commit is contained in:
Sandro
2025-01-30 22:05:45 +01:00
committed by GitHub
+6 -6
View File
@@ -2,9 +2,8 @@
lib,
rustPlatform,
fetchCrate,
testers,
versionCheckHook,
nix-update-script,
cargo-aoc,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-aoc";
@@ -17,10 +16,11 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-LhPsiO0Fnx9Tf+itaaVaO1XgqM00m+UQMlUJYY8isXY=";
passthru = {
tests.version = testers.testVersion { package = cargo-aoc; };
updateScript = nix-update-script { };
};
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Simple CLI tool that aims to be a helper for Advent of Code";