Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions pkgs/by-name/so/socklog/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

stdenv.mkDerivation rec {
pname = "socklog";
version = "2.1.0";
version = "2.1.1";

src = fetchurl {
url = "https://smarden.org/socklog/socklog-${version}.tar.gz";
sha256 = "0mdlmhiq2j2fip7c4l669ams85yc3c1s1d89am7dl170grw9m1ma";
hash = "sha256-6xk3JB1seyoEArSf/evwIrsvzaPgDBsaF66Lzx5KObo=";
};

sourceRoot = "admin/socklog-${version}";
Expand All @@ -21,16 +21,6 @@ stdenv.mkDerivation rec {
"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 <unistd.h>'
sed -i src/prot.c -e '1i#include <unistd.h>' -e '2i#include <grp.h>'
sed -i src/seek_set.c -e '1i#include <unistd.h>'
'';

configurePhase = ''
echo "$NIX_CC/bin/cc $NIX_CFLAGS_COMPILE" >src/conf-cc
echo "$NIX_CC/bin/cc -s" >src/conf-ld
Expand Down