From ac4d46972dfe2fca5308e262e019b7bdbb847bec Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Fri, 18 Sep 2020 11:17:00 +0200 Subject: 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. --- pkgs/tools/security/scrypt/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/tools/security/scrypt') 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 " "" -- cgit 1.4.1