libapparmor: build perl bindings
There are still a few utils which use Perl, though most have been ported to
Python. Note that SWIG v2 is required to avoid the `error: 'bool' undeclared`
build failure with Perl >=5.16 [1].
[1]: https://github.com/swig/swig/commit/4305a3cef9b210541c3b88ab2fd03d787c3bca66
commitd3ea6abf0ee2740bc71b86c5e07e2cd7b6223283
authorJoachim Fasting <joachifm@fastmail.fm>
dateTue 7 Apr 2015, 10:58 (12 years ago)
parent38dc021
pkgs/os-specific/linux/apparmor/2.9/default.nix+1−1
@@ -54,7 +54,7 @@ let
5454 buildPhase = ''
5555 cd ./libraries/libapparmor
5656 ./autogen.sh
57− ./configure --prefix="$out" --with-python
57+ ./configure --prefix="$out" --with-python --with-perl
5858 make
5959 '';
6060
pkgs/top-level/all-packages.nix+1−1
@@ -8676,7 +8676,7 @@ let
86768676 perl = perl516; # ${perl}/.../CORE/handy.h:124:34: error: 'bool' undeclared
86778677 };
86788678
8679− apparmor_2_9 = callPackage ../os-specific/linux/apparmor/2.9 { };
8679+ apparmor_2_9 = callPackage ../os-specific/linux/apparmor/2.9 { swig = swig2; };
86808680 libapparmor = apparmor_2_9.libapparmor;
86818681 apparmor-pam = apparmor_2_9.apparmor-pam;
86828682 apparmor-parser = apparmor_2_9.apparmor-parser;