Skip to content
Merged
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
25 changes: 10 additions & 15 deletions pkgs/by-name/so/socklog/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
fetchurl,
}:

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

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

sourceRoot = "admin/socklog-${version}";
sourceRoot = "admin/socklog-${finalAttrs.version}";

outputs = [
"out"
Expand All @@ -24,11 +24,6 @@ stdenv.mkDerivation rec {
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 = ''
Expand All @@ -55,11 +50,11 @@ stdenv.mkDerivation rec {

doCheck = true;

meta = with lib; {
meta = {
description = "System and kernel logging services";
homepage = "https://smarden.org/socklog/";
license = licenses.publicDomain;
platforms = platforms.unix;
maintainers = [ maintainers.joachifm ];
license = lib.licenses.publicDomain;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ joachifm ];
};
}
})