linux-pam: fix cross-compilation from darwin

This commit is contained in:
Simon Žlender 2023-11-24 22:40:57 +01:00
parent f2d3ee6d90
commit 4eed370ae9

View file

@ -26,6 +26,12 @@ stdenv.mkDerivation rec {
})
];
# Case-insensitivity workaround for https://github.com/linux-pam/linux-pam/issues/569
postPatch = if stdenv.buildPlatform.isDarwin && stdenv.buildPlatform != stdenv.hostPlatform then ''
rm CHANGELOG
touch ChangeLog
'' else null;
outputs = [ "out" "doc" "man" /* "modules" */ ];
depsBuildBuild = [ buildPackages.stdenv.cc ];