mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:54:10 +00:00
f7e390e6d4
Related: -9fc5e7e473
-593e11fd94
-508ae42a0f
Since the last time I ran this script, the Repology API changed, so I had to adapt the script used in the previous PR. The new API should be more robust, so overall this is a positive (no more grepping the error messages for our relevant data but just a nice json structure). Here's the new script I used: ```sh curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq -r '.[] | select(.type == "homepage_permanent_https_redirect") | .data | "s@\(.url)@\(.target)@"' \ | sort | uniq | tee script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ``` I will also add this script to `maintainers/scripts`.
57 lines
1.8 KiB
Nix
57 lines
1.8 KiB
Nix
{ stdenv, fetchurl, fetchpatch, perl, perlPackages, finger_bsd, makeWrapper
|
|
, abook ? null
|
|
, gnupg ? null
|
|
, goobook ? null
|
|
, khard ? null
|
|
, mu ? null
|
|
}:
|
|
|
|
let
|
|
version = "0.48.1";
|
|
in
|
|
with stdenv.lib;
|
|
with perlPackages;
|
|
stdenv.mkDerivation {
|
|
pname = "lbdb";
|
|
inherit version;
|
|
src = fetchurl {
|
|
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
|
|
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";
|
|
};
|
|
|
|
buildInputs = [ goobook makeWrapper perl ConvertASN1 perlldap AuthenSASL ]
|
|
++ optional (!stdenv.isDarwin) finger_bsd
|
|
++ optional (abook != null) abook
|
|
++ optional (gnupg != null) gnupg
|
|
++ optional (goobook != null) goobook
|
|
++ optional (khard != null) khard
|
|
++ optional (mu != null) mu;
|
|
configureFlags = [ ]
|
|
++ optional (abook != null) "--with-abook"
|
|
++ optional (gnupg != null) "--with-gpg"
|
|
++ optional (goobook != null) "--with-goobook"
|
|
++ optional (khard != null) "--with-khard"
|
|
++ optional (mu != null) "--with-mu";
|
|
|
|
patches = [ ./add-methods-to-rc.patch
|
|
# fix undefined exec_prefix. Remove with the next release
|
|
(fetchpatch {
|
|
url = "https://github.com/RolandRosenfeld/lbdb/commit/60b7bae255011f59212d96adfbded459d6a27129.patch";
|
|
sha256 = "129zg086glmlalrg395jq8ljcp787dl3rxjf9v7apsd8mqfdkl2v";
|
|
excludes = [ "debian/changelog" ];
|
|
})
|
|
];
|
|
postFixup = "wrapProgram $out/lib/mutt_ldap_query --prefix PERL5LIB : "
|
|
+ "${AuthenSASL}/${perl.libPrefix}"
|
|
+ ":${ConvertASN1}/${perl.libPrefix}"
|
|
+ ":${perlldap}/${perl.libPrefix}";
|
|
|
|
meta = {
|
|
homepage = "https://www.spinnaker.de/lbdb/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
description = "The Little Brother's Database";
|
|
maintainers = [ maintainers.kaiha maintainers.bfortz ];
|
|
};
|
|
}
|