git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #109635 from mroi/patch-pam

linux-pam: fix cross compilation on Darwin

commit60d9784263c188bedb0618616024c06149809580 authorJörg Thalheim <Mic92@users.noreply.github.com> dateWed 3 Feb 2021, 05:42 (6 years ago) parenta0a2267fb87614
1 file changed+3−2
pkgs/os-specific/linux/pam/default.nix+3−2
pkgs/os-specific/linux/pam/default.nix+3−2
@@ -1,4 +1,4 @@
1−{ lib, stdenv, buildPackages, fetchurl, fetchpatch, flex, cracklib, db4
1+{ lib, stdenv, buildPackages, fetchurl, fetchpatch, flex, cracklib, db4, gettext
22, nixosTests
33}:
44
@@ -25,7 +25,8 @@ stdenv.mkDerivation rec {
2525 outputs = [ "out" "doc" "man" /* "modules" */ ];
2626
2727 depsBuildBuild = [ buildPackages.stdenv.cc ];
28− nativeBuildInputs = [ flex ];
28+ nativeBuildInputs = [ flex ]
29+ ++ lib.optional stdenv.buildPlatform.isDarwin gettext;
2930
3031 buildInputs = [ cracklib db4 ];
3132