diff --git a/pkgs/by-name/sn/snphost/package.nix b/pkgs/by-name/sn/snphost/package.nix index 3b1bc4674345..2163c17feec9 100644 --- a/pkgs/by-name/sn/snphost/package.nix +++ b/pkgs/by-name/sn/snphost/package.nix @@ -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 = {