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

authored by Aleksana and committed by GitHub 5e8f4032 7ad5af60

+9 -3
+9 -3
pkgs/by-name/sn/snphost/package.nix
··· 10 nix-update-script, 11 findutils, 12 installShellFiles, 13 }: 14 15 rustPlatform.buildRustPackage rec { 16 pname = "snphost"; 17 - version = "0.6.0"; 18 19 src = fetchFromGitHub { 20 owner = "virtee"; 21 repo = "snphost"; 22 tag = "v${version}"; 23 - hash = "sha256-sBEIQQ0vfwQh5eqsC6x37VDlbXuBUybRh4LNUjfEJ5A="; 24 }; 25 26 useFetchCargoVendor = true; 27 - cargoHash = "sha256-aNXv6Av3JvnTqTbxX70FmwEF4jJaQmD6FHjvh7om9iE="; 28 29 nativeBuildInputs = [ 30 asciidoctor ··· 39 zlib 40 ]; 41 42 # man page is placed in cargo's $OUT_DIR, which is randomized. 43 # Contacted upstream about it, for now use find to locate it. 44 postInstall = '' 45 installManPage $(find target/x86_64-unknown-linux-gnu/release/build -name "snphost.1") 46 ''; 47 48 passthru.updateScript = nix-update-script { }; 49
··· 10 nix-update-script, 11 findutils, 12 installShellFiles, 13 + versionCheckHook, 14 }: 15 16 rustPlatform.buildRustPackage rec { 17 pname = "snphost"; 18 + version = "0.6.1"; 19 20 src = fetchFromGitHub { 21 owner = "virtee"; 22 repo = "snphost"; 23 tag = "v${version}"; 24 + hash = "sha256-FvHawwoIqCiZ+Jm1itDWspaI+vDN6xDfeI11KoiO/DU="; 25 }; 26 27 useFetchCargoVendor = true; 28 + cargoHash = "sha256-ZOXOfFYingTBq5LfJqHRf6ZdvrdY1Zve/ZMnAE25kPM="; 29 30 nativeBuildInputs = [ 31 asciidoctor ··· 40 zlib 41 ]; 42 43 + env.OPENSSL_NO_VENDOR = true; 44 + 45 # man page is placed in cargo's $OUT_DIR, which is randomized. 46 # Contacted upstream about it, for now use find to locate it. 47 postInstall = '' 48 installManPage $(find target/x86_64-unknown-linux-gnu/release/build -name "snphost.1") 49 ''; 50 + 51 + nativeInstallCheckInputs = [ versionCheckHook ]; 52 + doInstallCheck = true; 53 54 passthru.updateScript = nix-update-script { }; 55