nixos/security-wrapper: Fix cross-compilation
This commit is contained in:
parent
6f8cb301a9
commit
b2cbffae64
|
@ -17,7 +17,7 @@ let
|
||||||
hardeningEnable = [ "pie" ];
|
hardeningEnable = [ "pie" ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
gcc -Wall -O2 -DWRAPPER_DIR=\"${parentWrapperDir}\" \
|
$CC -Wall -O2 -DWRAPPER_DIR=\"${parentWrapperDir}\" \
|
||||||
-lcap-ng -lcap ${./wrapper.c} -o $out/bin/security-wrapper
|
-lcap-ng -lcap ${./wrapper.c} -o $out/bin/security-wrapper
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue