44 fetchurl ,
55} :
66
7- stdenv . mkDerivation rec {
7+ stdenv . mkDerivation ( finalAttrs : {
88 pname = "socklog" ;
9- version = "2.1.0 " ;
9+ version = "2.1.1 " ;
1010
1111 src = fetchurl {
12- url = "https://smarden.org/socklog/socklog-${ version } .tar.gz" ;
13- sha256 = "0mdlmhiq2j2fip7c4l669ams85yc3c1s1d89am7dl170grw9m1ma " ;
12+ url = "https://smarden.org/socklog/socklog-${ finalAttrs . version } .tar.gz" ;
13+ hash = "sha256-6xk3JB1seyoEArSf/evwIrsvzaPgDBsaF66Lzx5KObo= " ;
1414 } ;
1515
16- sourceRoot = "admin/socklog-${ version } " ;
16+ sourceRoot = "admin/socklog-${ finalAttrs . version } " ;
1717
1818 outputs = [
1919 "out"
@@ -24,11 +24,6 @@ stdenv.mkDerivation rec {
2424 postPatch = ''
2525 # Fails to run as user without supplementary groups
2626 echo "int main() { return 0; }" >src/chkshsgr.c
27-
28- # Fixup implicit function declarations
29- sed -i src/pathexec_run.c -e '1i#include <unistd.h>'
30- sed -i src/prot.c -e '1i#include <unistd.h>' -e '2i#include <grp.h>'
31- sed -i src/seek_set.c -e '1i#include <unistd.h>'
3227 '' ;
3328
3429 configurePhase = ''
@@ -55,11 +50,11 @@ stdenv.mkDerivation rec {
5550
5651 doCheck = true ;
5752
58- meta = with lib ; {
53+ meta = {
5954 description = "System and kernel logging services" ;
6055 homepage = "https://smarden.org/socklog/" ;
61- license = licenses . publicDomain ;
62- platforms = platforms . unix ;
63- maintainers = [ maintainers . joachifm ] ;
56+ license = lib . licenses . publicDomain ;
57+ platforms = lib . platforms . unix ;
58+ maintainers = with lib . maintainers ; [ joachifm ] ;
6459 } ;
65- }
60+ } )
0 commit comments