File tree 2 files changed +55
-0
lines changed
2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ { stdenv , fetchurl } :
2
+
3
+ with stdenv . lib ;
4
+
5
+ stdenv . mkDerivation rec {
6
+ name = "socklog-${ version } " ;
7
+ version = "2.1.0" ;
8
+
9
+ src = fetchurl {
10
+ url = "http://smarden.org/socklog/socklog-${ version } .tar.gz" ;
11
+ sha256 = "0mdlmhiq2j2fip7c4l669ams85yc3c1s1d89am7dl170grw9m1ma" ;
12
+ } ;
13
+
14
+ sourceRoot = "admin/socklog-${ version } " ;
15
+
16
+ outputs = [ "out" "man" "doc" ] ;
17
+
18
+ configurePhase = ''
19
+ echo "$NIX_CC/bin/cc $NIX_CFLAGS_COMPILE" >src/conf-cc
20
+ echo "$NIX_CC/bin/cc -s" >src/conf-ld
21
+ '' ;
22
+
23
+ buildPhase = ''package/compile'' ;
24
+
25
+ installPhase = ''
26
+ runHook preInstall
27
+
28
+ mkdir -p $out/bin
29
+ mv command"/"* $out/bin
30
+
31
+ for i in {1,8} ; do
32
+ mkdir -p $man/share/man/man$i
33
+ mv man"/"*.$i $man/share/man/man$i
34
+ done
35
+
36
+ mkdir -p $doc/share/socklog/html
37
+ mv doc"/"*.html $doc/share/socklog/html/
38
+
39
+ runHook postInstall
40
+ '' ;
41
+
42
+ checkPhase = ''package/check'' ;
43
+
44
+ doCheck = true ;
45
+
46
+ meta = {
47
+ description = "System and kernel logging services" ;
48
+ homepage = http://smarden.org/socklog/ ;
49
+ license = licenses . publicDomain ;
50
+ platforms = platforms . unix ;
51
+ maintainers = [ maintainers . joachifm ] ;
52
+ } ;
53
+ }
Original file line number Diff line number Diff line change @@ -1026,6 +1026,8 @@ with pkgs;
1026
1026
1027
1027
playerctl = callPackage ../tools/audio/playerctl { };
1028
1028
1029
+ socklog = callPackage ../tools/system/socklog { };
1030
+
1029
1031
syscall_limiter = callPackage ../os-specific/linux/syscall_limiter {};
1030
1032
1031
1033
syslogng = callPackage ../tools/system/syslog-ng { };
You can’t perform that action at this time.
0 commit comments