snphost: 0.6.0 -> 0.6.1, add versionCheckHook (#427424)

This commit is contained in:
Aleksana
2025-07-23 10:50:13 +08:00
committed by GitHub
+9 -3
View File
@@ -10,21 +10,22 @@
nix-update-script,
findutils,
installShellFiles,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "snphost";
version = "0.6.0";
version = "0.6.1";
src = fetchFromGitHub {
owner = "virtee";
repo = "snphost";
tag = "v${version}";
hash = "sha256-sBEIQQ0vfwQh5eqsC6x37VDlbXuBUybRh4LNUjfEJ5A=";
hash = "sha256-FvHawwoIqCiZ+Jm1itDWspaI+vDN6xDfeI11KoiO/DU=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-aNXv6Av3JvnTqTbxX70FmwEF4jJaQmD6FHjvh7om9iE=";
cargoHash = "sha256-ZOXOfFYingTBq5LfJqHRf6ZdvrdY1Zve/ZMnAE25kPM=";
nativeBuildInputs = [
asciidoctor
@@ -39,12 +40,17 @@ rustPlatform.buildRustPackage rec {
zlib
];
env.OPENSSL_NO_VENDOR = true;
# man page is placed in cargo's $OUT_DIR, which is randomized.
# Contacted upstream about it, for now use find to locate it.
postInstall = ''
installManPage $(find target/x86_64-unknown-linux-gnu/release/build -name "snphost.1")
'';
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {