Merge pull request #40537 from obsidiansystems/linux-pam-cross
pam: Remove crossAttrs
This commit is contained in:
commit
fd5ca417f2
@ -33,21 +33,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
crossAttrs = {
|
|
||||||
propagatedBuildInputs = [ flex.crossDrv cracklib.crossDrv ];
|
|
||||||
preConfigure = preConfigure + ''
|
|
||||||
$crossConfig-ar x ${flex.crossDrv}/lib/libfl.a
|
|
||||||
mv libyywrap.o libyywrap-target.o
|
|
||||||
ar x ${flex}/lib/libfl.a
|
|
||||||
mv libyywrap.o libyywrap-host.o
|
|
||||||
export LDFLAGS="$LDFLAGS $PWD/libyywrap-target.o"
|
|
||||||
sed -e 's/@CC@/gcc/' -i doc/specs/Makefile.in
|
|
||||||
'';
|
|
||||||
postConfigure = ''
|
|
||||||
sed -e "s@ $PWD/libyywrap-target.o@ $PWD/libyywrap-host.o@" -i doc/specs/Makefile
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv -v $out/sbin/unix_chkpwd{,.orig}
|
mv -v $out/sbin/unix_chkpwd{,.orig}
|
||||||
ln -sv /run/wrappers/bin/unix_chkpwd $out/sbin/unix_chkpwd
|
ln -sv /run/wrappers/bin/unix_chkpwd $out/sbin/unix_chkpwd
|
||||||
|
Loading…
Reference in New Issue
Block a user