summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authorDamien Cassou <damien@cassou.me>2021-05-04 07:55:59 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-08 00:49:29 -0700
commit6d6c8d7b8ebf0946841033bea51ae0c56a9e9bce (patch)
tree28968b9f2c7e66b7deed29961b93a958f389a6e2 /pkgs/development/haskell-modules/configuration-common.nix
parent24ae6995055ba5941b076c62d9eeafd995790681 (diff)
downloadnixpkgs-6d6c8d7b8ebf0946841033bea51ae0c56a9e9bce.tar
nixpkgs-6d6c8d7b8ebf0946841033bea51ae0c56a9e9bce.tar.gz
nixpkgs-6d6c8d7b8ebf0946841033bea51ae0c56a9e9bce.tar.bz2
nixpkgs-6d6c8d7b8ebf0946841033bea51ae0c56a9e9bce.tar.lz
nixpkgs-6d6c8d7b8ebf0946841033bea51ae0c56a9e9bce.tar.xz
nixpkgs-6d6c8d7b8ebf0946841033bea51ae0c56a9e9bce.tar.zst
nixpkgs-6d6c8d7b8ebf0946841033bea51ae0c56a9e9bce.zip
haskellModules.hledger-lib: Add merged but not-yet-released patch
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index f84e4d04873..db5dc27e8b8 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -864,6 +864,20 @@ self: super: {
   snap-templates = doJailbreak super.snap-templates; # https://github.com/snapframework/snap-templates/issues/22
   swagger2 = if (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) then dontHaddock (dontCheck super.swagger2) else super.swagger2;
 
+  # hledger-lib requires the latest version of pretty-simple
+  hledger-lib = appendPatch super.hledger-lib
+    # This patch has been merged but not released yet:
+    # https://github.com/simonmichael/hledger/pull/1512. It is
+    # important for ledger-autosync test suite:
+    # https://github.com/egh/ledger-autosync/issues/123
+    (pkgs.fetchpatch {
+      name   = "hledger-properly-escape-quotes-csv.patch";
+      url    = "https://github.com/simonmichael/hledger/commit/c9a72e1615e2ddc2824f2e248456e1042eb31e1d.patch";
+      sha256 = "10knvrd5bl9nrmi27i0pm82sfr64jy04xgbjp228qywyijpr3pqv";
+      includes = [ "Hledger/Read/CsvReader.hs" ];
+      stripLen = 1;
+    });
+
   # Copy hledger man pages from data directory into the proper place. This code
   # should be moved into the cabal2nix generator.
   hledger = overrideCabal super.hledger (drv: {