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:
Vladimír Čunát
2014-12-10 16:11:29 +01:00
parent e815624b67
commit 62e5e2a880
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -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
'';