git.iko.soy/typeable/nixpkgs
on master help sign in
diagrams-lib: build on ghc-7.10
commit1cbf0b7d2797db21b685e1c17c0161b1336bc693 authorShea Levy <shea@shealevy.com> dateSat 11 Apr 2015, 18:22 (12 years ago) parented892e2
2 files changed+17
pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+6 pkgs/development/haskell-modules/diagrams-lib-flexible-contexts.patch+11
pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+6
@@ -292,4 +292,10 @@ self: super: {
292292 diagrams-core = overrideCabal super.diagrams-core (drv: {
293293 prePatch = "sed -i 's|4\.8|4.9|' diagrams-core.cabal";
294294 });
295+
296+ # diagrams/diagrams-core#83
297+ diagrams-lib = overrideCabal super.diagrams-lib (drv: {
298+ prePatch = "sed -i 's|4\.8|4.9|' diagrams-lib.cabal";
299+ patches = [ ./diagrams-lib-flexible-contexts.patch ];
300+ });
295301}
pkgs/development/haskell-modules/diagrams-lib-flexible-contexts.patchnew file+11
@@ -0,0 +1,11 @@
1+diff -Naur diagrams-lib-1.2.0.9-orig/src/Diagrams/TwoD/Polygons.hs diagrams-lib-1.2.0.9/src/Diagrams/TwoD/Polygons.hs
2+--- diagrams-lib-1.2.0.9-orig/src/Diagrams/TwoD/Polygons.hs 2015-04-02 22:13:26.000000000 -0400
3++++ diagrams-lib-1.2.0.9/src/Diagrams/TwoD/Polygons.hs 2015-04-11 18:17:28.095156620 -0400
4+@@ -4,6 +4,7 @@
5+ {-# LANGUAGE TemplateHaskell #-}
6+ {-# LANGUAGE TypeFamilies #-}
7+ {-# LANGUAGE ViewPatterns #-}
8++{-# LANGUAGE FlexibleContexts #-}
9+
10+ -----------------------------------------------------------------------------
11+ -- |