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.
This commit is contained in:
sternenseemann 2020-09-18 11:17:00 +02:00
parent c66aaf1995
commit ac4d46972d

View File

@ -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 " ""