apparmor: fix build by using older perl
This is work around #5270. Also bogus path in wrapper got fixed. CC: maintainers @phreedom, @thoughtpolice. It would be better to test this as well by someone who actually uses it.
This commit is contained in:
@@ -77,9 +77,13 @@ stdenv.mkDerivation rec {
|
||||
cd ..
|
||||
cp -r kernel-patches $out
|
||||
'';
|
||||
installPhase = ''
|
||||
|
||||
installPhase = let
|
||||
perlVersion = (builtins.parseDrvName perl.name).version;
|
||||
in ''
|
||||
for i in $out/bin/*; do
|
||||
wrapProgram $i --prefix PERL5LIB : "$PERL5LIB:$out/lib/perl5/5.10.1/i686-linux-thread-multi/"
|
||||
wrapProgram $i --prefix PERL5LIB : \
|
||||
"$PERL5LIB:$out/lib/perl5/${perlVersion}/${stdenv.system}-thread-multi/"
|
||||
done
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user