linux-pam: fix cross compilation on Darwin
A build-time tool is created, which requires libintl.h. On Linux, libintl.h comes with glibc, but on Darwin, gettext is needed.
This commit is contained in:
parent
57c198236a
commit
fb876141d3
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, buildPackages, fetchurl, fetchpatch, flex, cracklib, db4
|
||||
{ lib, stdenv, buildPackages, fetchurl, fetchpatch, flex, cracklib, db4, gettext
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
|
@ -28,7 +28,8 @@ stdenv.mkDerivation rec {
|
|||
outputs = [ "out" "doc" "man" /* "modules" */ ];
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ flex ];
|
||||
nativeBuildInputs = [ flex ]
|
||||
++ lib.optional stdenv.buildPlatform.isDarwin gettext;
|
||||
|
||||
buildInputs = [ cracklib db4 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue