From 795359da392998cd590c6c5f7de577ad0ccc804d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 24 Oct 2020 10:46:29 +0200 Subject: [PATCH] Add xdg config patch for ledger --- overlays/default.nix | 1 + overlays/ledger/default.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 overlays/ledger/default.nix diff --git a/overlays/default.nix b/overlays/default.nix index 1db1819..ee1f7dc 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -13,6 +13,7 @@ goaccess = import ./goaccess; kanboard = import ./kanboard; ldapvi = import ./ldapvi; + ledger = import ./ledger; lesspipe = import ./lesspipe; mysql = import ./databases/mysql; neomutt = import ./neomutt; diff --git a/overlays/ledger/default.nix b/overlays/ledger/default.nix new file mode 100644 index 0000000..9f2df57 --- /dev/null +++ b/overlays/ledger/default.nix @@ -0,0 +1,20 @@ +self: super: { + ledger = super.ledger.overrideAttrs(old: rec { + #name = "${old.pname}-${version}"; + #version = "3.2.1"; + #src = self.fetchFromGitHub { + # owner = "ledger"; + # repo = "ledger"; + # rev = "v${version}"; + # sha256 = "0x6jxwss3wwzbzlwmnwb8yzjk8f9wfawif4f1b74z2qg6hc4r7f6"; + #}; + patches = old.patches or [] ++ [ + (self.fetchpatch { + name = "xdgconfig.patch"; + url = "https://github.com/ledger/ledger/commit/c79674649dee7577d6061e3d0776922257520fd0.patch"; + sha256 = "0n82mjz9i17800r7vs45sxpss14rivsf1j8hrv7jal24iyfm01dz"; + excludes = [ "doc/NEWS.md" ]; + }) + ]; + }); +} -- 2.41.0