From: Ismaƫl Bouya Date: Sat, 24 Oct 2020 08:46:29 +0000 (+0200) Subject: Add xdg config patch for ledger X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=795359da392998cd590c6c5f7de577ad0ccc804d;p=perso%2FImmae%2FConfig%2FNix.git Add xdg config patch for ledger --- 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" ]; + }) + ]; + }); +}