diff --git a/pkgs/tools/system/socklog/default.nix b/pkgs/tools/system/socklog/default.nix index 78898fa1099a..15a18a453f00 100644 --- a/pkgs/tools/system/socklog/default.nix +++ b/pkgs/tools/system/socklog/default.nix @@ -16,7 +16,13 @@ stdenv.mkDerivation rec { outputs = [ "out" "man" "doc" ]; postPatch = '' + # Fails to run as user without supplementary groups echo "int main() { return 0; }" >src/chkshsgr.c + + # Fixup implicit function declarations + sed -i src/pathexec_run.c -e '1i#include ' + sed -i src/prot.c -e '1i#include ' -e '2i#include ' + sed -i src/seek_set.c -e '1i#include ' ''; configurePhase = ''