about summary refs log tree commit diff
path: root/pkgs/openlab
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-06-13 13:42:49 +0200
committerProfpatsch <mail@profpatsch.de>2016-06-13 13:50:46 +0200
commit42321e0890127f9bab67d506402e36a4c7a70ece (patch)
tree6df6c2fc15c825708bf8fe30d24be8a9370aadee /pkgs/openlab
parent65435d827c846ab2eef966601cd0490591b8dbe9 (diff)
pkgs/openlab.gitit: GHC 8 patch
Diffstat (limited to 'pkgs/openlab')
-rw-r--r--pkgs/openlab/gitit/default.nix3
-rw-r--r--pkgs/openlab/gitit/filestore.patch70
2 files changed, 73 insertions, 0 deletions
diff --git a/pkgs/openlab/gitit/default.nix b/pkgs/openlab/gitit/default.nix
index 632bb0cf..159d2a2f 100644
--- a/pkgs/openlab/gitit/default.nix
+++ b/pkgs/openlab/gitit/default.nix
@@ -11,6 +11,9 @@ let hp = haskellPackages.override {
       };
       platforms = [ "x86_64-linux" ];
     }));
+    filestore = (hlib.overrideCabal super.filestore (drv: {
+      patches = [ ./filestore.patch ];
+    }));
   });
 };
 in hp.gitit
diff --git a/pkgs/openlab/gitit/filestore.patch b/pkgs/openlab/gitit/filestore.patch
new file mode 100644
index 00000000..5146f80b
--- /dev/null
+++ b/pkgs/openlab/gitit/filestore.patch
@@ -0,0 +1,70 @@
+From 6aef6646deb703e27228968855d7d9e460e31ef9 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <siarheit@google.com>
+Date: Sat, 28 May 2016 21:45:05 +0100
+Subject: [PATCH] filestore.cabal: refresh for ghc-8
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+GHC now requires explicit quantification.
+
+Patch fixes the following build failure:
+  [ 3 of 11] Compiling Data.FileStore.Types ( Data/FileStore/Types.hs, dist/build/Data/FileStore/Types.o )
+
+  Data/FileStore/Types.hs:153:32: error:
+    Not in scope: type variable ‘a’
+
+Updated upper bounds for packages bundled with ghc-8.
+
+Signed-off-by: Sergei Trofimovich <siarheit@google.com>
+---
+ Data/FileStore/Types.hs | 4 ++--
+ filestore.cabal         | 6 +++---
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/Data/FileStore/Types.hs b/Data/FileStore/Types.hs
+index e950c7a..e116761 100644
+--- a/Data/FileStore/Types.hs
++++ b/Data/FileStore/Types.hs
+@@ -150,7 +150,7 @@ data FileStore = FileStore {
+     initialize     :: IO ()
+ 
+     -- | Save contents in the filestore.
+-  , save           :: Contents a
++  , save           :: forall a . Contents a
+                    => FilePath          -- Resource to save.
+                    -> Author            --  Author of change.
+                    -> Description       --  Description of change.
+@@ -158,7 +158,7 @@ data FileStore = FileStore {
+                    -> IO ()
+ 
+     -- | Retrieve the contents of the named resource.
+-  , retrieve       :: Contents a
++  , retrieve       :: forall a . Contents a
+                    => FilePath          -- Resource to retrieve.
+                    -> Maybe RevisionId  -- @Just@ a particular revision ID,
+                                         -- or @Nothing@ for latest
+diff --git a/filestore.cabal b/filestore.cabal
+index 999851c..6b65967 100644
+--- a/filestore.cabal
++++ b/filestore.cabal
+@@ -35,8 +35,8 @@ Library
+                          filepath >= 1.1 && < 1.5,
+                          directory >= 1.0 && < 1.3,
+                          parsec >= 2 && < 3.2,
+-                         process >= 1.0 && < 1.3,
+-                         time >= 1.1 && < 1.6,
++                         process >= 1.0 && < 1.5,
++                         time >= 1.1 && < 1.7,
+                          xml >= 1.3 && < 1.4,
+                          split >= 0.1 && < 0.3,
+                          Diff >= 0.2 && < 0.4,
+@@ -65,7 +65,7 @@ Test-suite test-filestore
+     Main-is:        Tests.hs
+     Default-Language:  Haskell98
+     Build-depends:  base >= 4 && < 5,
+-                    HUnit >= 1.2 && < 1.3,
++                    HUnit >= 1.2 && < 1.4,
+                     mtl,
+                     time,
+                     Diff >= 0.2 && < 0.4,