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