diff options
Diffstat (limited to 'Biz/Bild/Deps.nix')
-rw-r--r-- | Biz/Bild/Deps.nix | 79 |
1 files changed, 41 insertions, 38 deletions
diff --git a/Biz/Bild/Deps.nix b/Biz/Bild/Deps.nix index fd15d9e..bf5538e 100644 --- a/Biz/Bild/Deps.nix +++ b/Biz/Bild/Deps.nix @@ -1,56 +1,59 @@ -_: pkgs: +self: super: let - buildCabal = self: name: - self.callCabal2nix name pkgs.sources.${name} {}; - buildCabalSubdir = self: {name, src ? pkgs.sources.${name}, subdir ? name}: - self.callCabal2nix name (src + "/${subdir}") {}; + buildCabal = sel: name: + sel.callCabal2nix name super.sources.${name} {}; + buildCabalSubdir = sel: {name, src ? super.sources.${name}, subdir ? name}: + sel.callCabal2nix name (src + "/${subdir}") {}; ghc = "ghc884"; in rec { - haskell = pkgs.haskell // { - packages = pkgs.haskell.packages // { - "${ghc}" = pkgs.haskell.packages."${ghc}".override (old: { - overrides = with pkgs.pkgs.haskell.lib; self: super: - pkgs.overridePinnedDeps (buildCabal self) // { - acid-state = dontCheck super.acid-state; # mac: "too many open files" + haskell = super.haskell // { + packages = super.haskell.packages // { + "${ghc}" = super.haskell.packages."${ghc}".override (old: { + overrides = with super.pkgs.haskell.lib; sel: sup: + super.overridePinnedDeps (buildCabal sel) // { + acid-state = dontCheck sup.acid-state; # mac: "too many open files" ghcjs-base = null; # otherwise ghc tries to build this via overridePinnedDeps - servant-auth = buildCabalSubdir self {name = "servant-auth";}; - servant-server = doJailbreak super.servant-server; - stripe-haskell = dontCheck super.stripe-haskell; - stripe-http-client = dontCheck super.stripe-http-client; - temporary = dontCheck super.temporary; - wai-middleware-metrics = dontCheck super.wai-middleware-metrics; + servant-auth = buildCabalSubdir sel {name = "servant-auth";}; + servant-server = doJailbreak sup.servant-server; + stripe-haskell = dontCheck sup.stripe-haskell; + stripe-http-client = dontCheck sup.stripe-http-client; + temporary = dontCheck sup.temporary; + wai-middleware-metrics = dontCheck sup.wai-middleware-metrics; }; }); #ghcjs86 = pkgs.haskell.packages.ghcjs86.override (old: { - # overrides = with pkgs.haskell.lib; self: super: - # pkgs.overridePinnedDeps (buildCabal self) // { - # Glob = dontCheck super.Glob; - # QuickCheck = dontCheck super.QuickCheck; - # aeson = dontCheck super.aeson; - # base-compat-batteries = dontCheck super.base-compat-batteries; - # clay = dontCheck super.clay; - # comonad = dontCheck super.comonad; - # ghcjs-base = dontCheck (buildCabal self "ghcjs-base"); - # jsaddle-warp = dontCheck (buildCabalSubdir self { + # overrides = with pkgs.haskell.lib; sel: sup: + # super.overridePinnedDeps (buildCabal sel) // { + # Glob = dontCheck sup.Glob; + # QuickCheck = dontCheck sup.QuickCheck; + # aeson = dontCheck sup.aeson; + # base-compat-batteries = dontCheck sup.base-compat-batteries; + # clay = dontCheck sup.clay; + # comonad = dontCheck sup.comonad; + # ghcjs-base = dontCheck (buildCabal sel "ghcjs-base"); + # jsaddle-warp = dontCheck (buildCabalSubdir sel { # name = "jsaddle-warp"; # src = pkgs.sources.jsaddle; # }); - # http-types = dontCheck super.http-types; - # network-uri= dontCheck super.network-uri; - # scientific = dontCheck super.scientific; # takes forever - # servant = dontCheck super.servant; - # servant-auth = buildCabalSubdir self "servant-auth"; - # tasty-quickcheck = dontCheck super.tasty-quickcheck; - # temporary = dontCheck super.temporary; - # time-compat = dontCheck super.time-compat; - # vector = dontCheck super.vector; + # http-types = dontCheck sup.http-types; + # network-uri= dontCheck sup.network-uri; + # scientific = dontCheck sup.scientific; # takes forever + # servant = dontCheck sup.servant; + # servant-auth = buildCabalSubdir sel "servant-auth"; + # tasty-quickcheck = dontCheck sup.tasty-quickcheck; + # temporary = dontCheck sup.temporary; + # time-compat = dontCheck sup.time-compat; + # vector = dontCheck sup.vector; # }; #}); }; }; - guile-opengl = pkgs.callPackage ./Deps/guile-opengl.nix {}; - inspekt3d = pkgs.callPackage ./Deps/inspekt3d.nix {}; + autogen = super.autogen.overrideAttrs (old: old // { + buildInputs = super.lib.lists.remove super.guile old.buildInputs ++ [super.guile_2_0]; + }); + guile-opengl = super.callPackage ./Deps/guile-opengl.nix {}; + inspekt3d = super.callPackage ./Deps/inspekt3d.nix {}; } |