diff options
Diffstat (limited to 'pkgs/tools/security/shisho/default.nix')
-rw-r--r-- | pkgs/tools/security/shisho/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/security/shisho/default.nix b/pkgs/tools/security/shisho/default.nix index ae61c2a249dbf..f5a137a84671b 100644 --- a/pkgs/tools/security/shisho/default.nix +++ b/pkgs/tools/security/shisho/default.nix @@ -3,6 +3,7 @@ , rustPlatform , installShellFiles , rustfmt +, stdenv }: rustPlatform.buildRustPackage rec { @@ -13,10 +14,10 @@ rustPlatform.buildRustPackage rec { owner = "flatt-security"; repo = pname; rev = "v${version}"; - sha256 = "sha256-G7sHaDq+F5lXNaF1sSLUecdjZbCejJE79P4AQifKdFY="; + hash = "sha256-G7sHaDq+F5lXNaF1sSLUecdjZbCejJE79P4AQifKdFY="; fetchSubmodules = true; }; - cargoSha256 = "sha256-xd4andytmDMOIT+3DkmUC9fkxxGJ6yRY2WSdnGB6ZwY="; + cargoHash = "sha256-xd4andytmDMOIT+3DkmUC9fkxxGJ6yRY2WSdnGB6ZwY="; nativeBuildInputs = [ installShellFiles @@ -24,7 +25,7 @@ rustPlatform.buildRustPackage rec { rustfmt ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd shisho \ --bash <($out/bin/shisho completion bash) \ --fish <($out/bin/shisho completion fish) \ |