tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
lbdb: rename finger_bsd to bsd-finger
AndersonTorres
3 years ago
a9b8e7d2
e0cce3d7
+34
-23
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
lbdb
default.nix
top-level
all-packages.nix
+33
-22
pkgs/tools/misc/lbdb/default.nix
···
1
-
{ lib, stdenv, fetchurl, fetchpatch, perl, finger_bsd
2
-
, abook ? null
3
-
, gnupg ? null
4
-
, goobook ? null
5
-
, khard ? null
6
-
, mu ? null
0
0
0
0
0
7
}:
8
9
let
10
-
perl' = perl.withPackages (p: with p; [ ConvertASN1 perlldap AuthenSASL ]);
0
0
0
0
11
in
12
stdenv.mkDerivation rec {
13
pname = "lbdb";
14
version = "0.48.1";
0
15
src = fetchurl {
16
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
17
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";
18
};
19
20
-
buildInputs = [ goobook perl' ]
21
-
++ lib.optional (!stdenv.isDarwin) finger_bsd
22
-
++ lib.optional (abook != null) abook
23
-
++ lib.optional (gnupg != null) gnupg
24
-
++ lib.optional (goobook != null) goobook
25
-
++ lib.optional (khard != null) khard
26
-
++ lib.optional (mu != null) mu;
27
28
configureFlags = [ ]
29
-
++ lib.optional (abook != null) "--with-abook"
30
-
++ lib.optional (gnupg != null) "--with-gpg"
31
-
++ lib.optional (goobook != null) "--with-goobook"
32
-
++ lib.optional (khard != null) "--with-khard"
33
-
++ lib.optional (mu != null) "--with-mu";
34
35
-
patches = [ ./add-methods-to-rc.patch
0
36
# fix undefined exec_prefix. Remove with the next release
37
(fetchpatch {
38
url = "https://github.com/RolandRosenfeld/lbdb/commit/60b7bae255011f59212d96adfbded459d6a27129.patch";
···
43
44
meta = with lib; {
45
homepage = "https://www.spinnaker.de/lbdb/";
0
46
license = licenses.gpl2;
0
47
platforms = platforms.all;
48
-
description = "The Little Brother's Database";
49
-
maintainers = [ maintainers.kaiha maintainers.bfortz ];
50
};
51
}
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchurl
4
+
, fetchpatch
5
+
, perl
6
+
, bsd-finger
7
+
, withAbook ? true, abook
8
+
, withGnupg ? true, gnupg
9
+
, withGoobook ? true, goobook
10
+
, withKhard ? true, khard
11
+
, withMu ? true, mu
12
}:
13
14
let
15
+
perl' = perl.withPackages (p: with p; [
16
+
AuthenSASL
17
+
ConvertASN1
18
+
perlldap
19
+
]);
20
in
21
stdenv.mkDerivation rec {
22
pname = "lbdb";
23
version = "0.48.1";
24
+
25
src = fetchurl {
26
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
27
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";
28
};
29
30
+
buildInputs = [ perl' ]
31
+
++ lib.optional (!stdenv.isDarwin) bsd-finger
32
+
++ lib.optional withAbook abook
33
+
++ lib.optional withGnupg gnupg
34
+
++ lib.optional withGoobook goobook
35
+
++ lib.optional withKhard khard
36
+
++ lib.optional withMu mu;
37
38
configureFlags = [ ]
39
+
++ lib.optional withAbook "--with-abook"
40
+
++ lib.optional withGnupg "--with-gpg"
41
+
++ lib.optional withGoobook "--with-goobook"
42
+
++ lib.optional withKhard "--with-khard"
43
+
++ lib.optional withMu "--with-mu";
44
45
+
patches = [
46
+
./add-methods-to-rc.patch
47
# fix undefined exec_prefix. Remove with the next release
48
(fetchpatch {
49
url = "https://github.com/RolandRosenfeld/lbdb/commit/60b7bae255011f59212d96adfbded459d6a27129.patch";
···
54
55
meta = with lib; {
56
homepage = "https://www.spinnaker.de/lbdb/";
57
+
description = "The Little Brother's Database";
58
license = licenses.gpl2;
59
+
maintainers = with maintainers; [ kaiha bfortz ];
60
platforms = platforms.all;
0
0
61
};
62
}
+1
-1
pkgs/top-level/all-packages.nix
···
27120
27121
caps = callPackage ../applications/audio/caps { };
27122
27123
-
lbdb = callPackage ../tools/misc/lbdb { abook = null; gnupg = null; goobook = null; khard = null; mu = null; };
27124
27125
lbry = callPackage ../applications/video/lbry { };
27126
···
27120
27121
caps = callPackage ../applications/audio/caps { };
27122
27123
+
lbdb = callPackage ../tools/misc/lbdb { };
27124
27125
lbry = callPackage ../applications/video/lbry { };
27126