runit: disable uid check during install

This commit is contained in:
Jörg Thalheim 2017-07-01 18:59:03 +01:00
parent 13c8c847f4
commit 712d26d437

View File

@ -23,6 +23,9 @@ stdenv.mkDerivation rec {
postPatch = ''
sed -i "s,\(#define RUNIT\) .*,\1 \"$out/bin/runit\"," src/runit.h
# usernamespace sandbox of nix seems to conflict with runit's assumptions
# about unix users. Therefor skip the check
sed -i '/.\/chkshsgr/d' src/Makefile
'' + stdenv.lib.optionalString (!static) ''
sed -i 's,-static,,g' src/Makefile
'';