uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead

https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948
this can do it nicely.

Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- a/lbdb.rc.in
+++ b/lbdb.rc.in
@@ -40,7 +40,7 @@
# - m_vcf search a vcard (according to RFC2426) file.
# - m_khard search a CardDAV address book via khard
-METHODS="m_inmail m_passwd m_finger"
+METHODS="@MODULES@"
#

View file

@ -0,0 +1,62 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, perl
, bsd-finger
, withAbook ? true, abook
, withGnupg ? true, gnupg
, withGoobook ? true, goobook
, withKhard ? true, khard
, withMu ? true, mu
}:
let
perl' = perl.withPackages (p: with p; [
AuthenSASL
ConvertASN1
perlldap
]);
in
stdenv.mkDerivation rec {
pname = "lbdb";
version = "0.48.1";
src = fetchurl {
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";
};
buildInputs = [ perl' ]
++ lib.optional (!stdenv.isDarwin) bsd-finger
++ lib.optional withAbook abook
++ lib.optional withGnupg gnupg
++ lib.optional withGoobook goobook
++ lib.optional withKhard khard
++ lib.optional withMu mu;
configureFlags = [ ]
++ lib.optional withAbook "--with-abook"
++ lib.optional withGnupg "--with-gpg"
++ lib.optional withGoobook "--with-goobook"
++ lib.optional withKhard "--with-khard"
++ lib.optional withMu "--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" ];
})
];
meta = with lib; {
homepage = "https://www.spinnaker.de/lbdb/";
description = "The Little Brother's Database";
license = licenses.gpl2;
maintainers = with maintainers; [ kaiha bfortz ];
platforms = platforms.all;
};
}