lbdb: rename finger_bsd to bsd-finger

This commit is contained in:
AndersonTorres 2022-03-14 12:54:44 -03:00
parent e0cce3d7bf
commit a9b8e7d21d
2 changed files with 35 additions and 24 deletions

View file

@ -1,38 +1,49 @@
{ lib, stdenv, fetchurl, fetchpatch, perl, finger_bsd { lib
, abook ? null , stdenv
, gnupg ? null , fetchurl
, goobook ? null , fetchpatch
, khard ? null , perl
, mu ? null , bsd-finger
, withAbook ? true, abook
, withGnupg ? true, gnupg
, withGoobook ? true, goobook
, withKhard ? true, khard
, withMu ? true, mu
}: }:
let let
perl' = perl.withPackages (p: with p; [ ConvertASN1 perlldap AuthenSASL ]); perl' = perl.withPackages (p: with p; [
AuthenSASL
ConvertASN1
perlldap
]);
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lbdb"; pname = "lbdb";
version = "0.48.1"; version = "0.48.1";
src = fetchurl { src = fetchurl {
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz"; url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh"; sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";
}; };
buildInputs = [ goobook perl' ] buildInputs = [ perl' ]
++ lib.optional (!stdenv.isDarwin) finger_bsd ++ lib.optional (!stdenv.isDarwin) bsd-finger
++ lib.optional (abook != null) abook ++ lib.optional withAbook abook
++ lib.optional (gnupg != null) gnupg ++ lib.optional withGnupg gnupg
++ lib.optional (goobook != null) goobook ++ lib.optional withGoobook goobook
++ lib.optional (khard != null) khard ++ lib.optional withKhard khard
++ lib.optional (mu != null) mu; ++ lib.optional withMu mu;
configureFlags = [ ] configureFlags = [ ]
++ lib.optional (abook != null) "--with-abook" ++ lib.optional withAbook "--with-abook"
++ lib.optional (gnupg != null) "--with-gpg" ++ lib.optional withGnupg "--with-gpg"
++ lib.optional (goobook != null) "--with-goobook" ++ lib.optional withGoobook "--with-goobook"
++ lib.optional (khard != null) "--with-khard" ++ lib.optional withKhard "--with-khard"
++ lib.optional (mu != null) "--with-mu"; ++ lib.optional withMu "--with-mu";
patches = [ ./add-methods-to-rc.patch patches = [
./add-methods-to-rc.patch
# fix undefined exec_prefix. Remove with the next release # fix undefined exec_prefix. Remove with the next release
(fetchpatch { (fetchpatch {
url = "https://github.com/RolandRosenfeld/lbdb/commit/60b7bae255011f59212d96adfbded459d6a27129.patch"; url = "https://github.com/RolandRosenfeld/lbdb/commit/60b7bae255011f59212d96adfbded459d6a27129.patch";
@ -43,9 +54,9 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://www.spinnaker.de/lbdb/"; homepage = "https://www.spinnaker.de/lbdb/";
license = licenses.gpl2;
platforms = platforms.all;
description = "The Little Brother's Database"; description = "The Little Brother's Database";
maintainers = [ maintainers.kaiha maintainers.bfortz ]; license = licenses.gpl2;
maintainers = with maintainers; [ kaiha bfortz ];
platforms = platforms.all;
}; };
} }

View file

@ -27120,7 +27120,7 @@ with pkgs;
caps = callPackage ../applications/audio/caps { }; caps = callPackage ../applications/audio/caps { };
lbdb = callPackage ../tools/misc/lbdb { abook = null; gnupg = null; goobook = null; khard = null; mu = null; }; lbdb = callPackage ../tools/misc/lbdb { };
lbry = callPackage ../applications/video/lbry { }; lbry = callPackage ../applications/video/lbry { };