about summary refs log tree commit diff
path: root/pkgs/tools/security/scrypt
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-09-18 11:17:00 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-09-18 11:17:00 +0200
commitac4d46972dfe2fca5308e262e019b7bdbb847bec (patch)
treee504030cdf80d0bd73ee9b6fc4926e2d41ae9738 /pkgs/tools/security/scrypt
parentc66aaf1995cacafc123466496db6b8a74a934182 (diff)
scrypt: fix build of pkgsStatic.scrypt
The getconf input defaults to the glibc one if it is being used and uses
the netbsd version in all other cases. This fixes the build when
building with musl, since it doesn't ship a version of getconf.
Diffstat (limited to 'pkgs/tools/security/scrypt')
-rw-r--r--pkgs/tools/security/scrypt/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/security/scrypt/default.nix b/pkgs/tools/security/scrypt/default.nix
index d834e4acd9c9a..66b5afc9a9b78 100644
--- a/pkgs/tools/security/scrypt/default.nix
+++ b/pkgs/tools/security/scrypt/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, openssl, utillinux }:
+{ stdenv, fetchurl, openssl, utillinux, getconf }:
 
 stdenv.mkDerivation rec {
   pname = "scrypt";
@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ openssl ];
 
+  nativeBuildInputs = [ getconf ];
+
   patchPhase = ''
     for f in Makefile.in autotools/Makefile.am libcperciva/cpusupport/Build/cpusupport.sh configure ; do
       substituteInPlace $f --replace "command -p " ""