From c62278fe2b976eb971493d8b9b3c9aa04b98e9e9 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 24 Nov 2014 14:34:05 +0100 Subject: [PATCH] haskell-pandoc: patch build to load the edited Cabal file from Hackage --- pkgs/development/libraries/haskell/pandoc/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/haskell/pandoc/default.nix b/pkgs/development/libraries/haskell/pandoc/default.nix index 0fa41e250b4..f6a1966ddd0 100644 --- a/pkgs/development/libraries/haskell/pandoc/default.nix +++ b/pkgs/development/libraries/haskell/pandoc/default.nix @@ -9,8 +9,15 @@ , tagsoup, temporary, testFramework, testFrameworkHunit , testFrameworkQuickcheck2, texmath, text, time , unorderedContainers, vector, xml, yaml, zipArchive, zlib +, fetchurl }: +let + editedCabalFile = fetchurl { + url = "hackage.haskell.org/package/pandoc-1.13.1/pandoc.cabal"; + sha256 = "1i57yk1pql4gv97cs86fk82hkwncics1wkzjqd9iz866204y4wrg"; + }; +in cabal.mkDerivation (self: { pname = "pandoc"; version = "1.13.1"; @@ -31,6 +38,7 @@ cabal.mkDerivation (self: { pandocTypes QuickCheck syb testFramework testFrameworkHunit testFrameworkQuickcheck2 text zipArchive ]; + preConfigure = "cp ${editedCabalFile} pandoc.cabal"; configureFlags = "-fhttps -fmake-pandoc-man-pages"; jailbreak = true; doCheck = false;