Add xdg config patch for ledger
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 24 Oct 2020 08:46:29 +0000 (10:46 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 24 Oct 2020 08:46:29 +0000 (10:46 +0200)
overlays/default.nix
overlays/ledger/default.nix [new file with mode: 0644]

index 1db1819c5be584f0ea1f395e05a492824a6e98fa..ee1f7dcbd7b502c8048813327005e4764b164d90 100644 (file)
@@ -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 (file)
index 0000000..9f2df57
--- /dev/null
@@ -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" ];
+      })
+    ];
+  });
+}