@@ -49,7 +49,9 @@ let
49 sha256 = "1m4dx901biqgnr4w4wz8a2z9r9dxyw7wv6m6mqglqwf2lxinqmp4";
49 sha256 = "1m4dx901biqgnr4w4wz8a2z9r9dxyw7wv6m6mqglqwf2lxinqmp4";
51 # (alpine patches {1,4,5,6,8} are needed for apparmor 2.11, but not 2.12)
51 # (alpine patches {1,4,5,6,8} are needed for apparmor 2.11, but not 2.12)
54 # Set to `true` after the next FIXME gets fixed or this gets some
56 # Set to `true` after the next FIXME gets fixed or this gets some
55 # common derivation infra. Too much copy-paste to fix one by one.
57 # common derivation infra. Too much copy-paste to fix one by one.
@@ -185,7 +187,7 @@ let
186 inherit patches;
188 inherit patches;
187 postPatch = "cd ./parser";
189 postPatch = "cd ./parser";
188− makeFlags = ''LANGS= USE_SYSTEM=1 INCLUDEDIR=${libapparmor}/include'';
190+ makeFlags = ''LANGS= USE_SYSTEM=1 INCLUDEDIR=${libapparmor}/include AR=${stdenv.cc.bintools.targetPrefix}ar'';
189 installFlags = ''DESTDIR=$(out) DISTRO=unknown'';
191 installFlags = ''DESTDIR=$(out) DISTRO=unknown'';
191 inherit doCheck;
193 inherit doCheck;