diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2021-12-04 00:19:23 +0100 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2021-12-04 00:19:54 +0100 |
commit | 9118fde4b08fb822861b2922007628c6d59f2286 (patch) | |
tree | 21582958996ba551e7d5a3923957dfbb293fba8e /pkgs/tools/security/scrypt | |
parent | 23315789cfc5250f9bdf80a8b21e130f8a096a6b (diff) |
scrypt: fix build on aarch64-darwin
util-linux alternative for darwin does not contain `rev` anyway and somehow the tests pass even when it is missing
Diffstat (limited to 'pkgs/tools/security/scrypt')
-rw-r--r-- | pkgs/tools/security/scrypt/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/tools/security/scrypt/default.nix b/pkgs/tools/security/scrypt/default.nix index 89ff50e0a8a07..5a3ab9cb68b4f 100644 --- a/pkgs/tools/security/scrypt/default.nix +++ b/pkgs/tools/security/scrypt/default.nix @@ -1,4 +1,10 @@ -{ lib, stdenv, fetchurl, openssl, util-linux, getconf }: +{ lib +, stdenv +, fetchurl +, openssl +, getconf +, util-linux +}: stdenv.mkDerivation rec { pname = "scrypt"; @@ -27,7 +33,7 @@ stdenv.mkDerivation rec { doCheck = true; checkTarget = "test"; - checkInputs = [ util-linux ]; + checkInputs = lib.optionals stdenv.isLinux [ util-linux ]; meta = with lib; { description = "Encryption utility"; |