mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-19 12:56:08 +00:00
release.nix: sync with release-8.2.nix
This commit is contained in:
parent
13d7e77b22
commit
ab47eac2b2
22
release.nix
22
release.nix
@ -1,4 +1,4 @@
|
||||
{ nixpkgs ? import <nixpkgs> {}, packages ? (_: []), rtsopts ? "-M3g -N2", systemPackages ? (_: []) }:
|
||||
{ compiler ? "ghc802", nixpkgs ? import <nixpkgs> {}, packages ? (_: []), rtsopts ? "-M3g -N2", systemPackages ? (_: []) }:
|
||||
|
||||
let
|
||||
inherit (builtins) any elem filterSource listToAttrs;
|
||||
@ -35,10 +35,10 @@ let
|
||||
"ihaskell-static-canvas"
|
||||
"ihaskell-widgets"
|
||||
]);
|
||||
haskellPackages = nixpkgs.haskellPackages.override {
|
||||
haskellPackages = nixpkgs.haskell.packages."${compiler}".override {
|
||||
overrides = self: super: {
|
||||
ihaskell = nixpkgs.haskell.lib.overrideCabal (
|
||||
self.callCabal2nix "ihaskell" ihaskell-src {}) (_drv: {
|
||||
ihaskell = nixpkgs.haskell.lib.overrideCabal (
|
||||
self.callCabal2nix "ihaskell" ihaskell-src {}) (_drv: {
|
||||
postPatch = let
|
||||
# The tests seem to 'buffer' when run during nix-build, so this is
|
||||
# a throw-away test to get everything running smoothly and passing.
|
||||
@ -59,10 +59,16 @@ let
|
||||
export GHC_PACKAGE_PATH=$PWD/dist/package.conf.inplace/:$GHC_PACKAGE_PATH
|
||||
'';
|
||||
});
|
||||
ghc-parser = self.callCabal2nix "ghc-parser" ghc-parser-src {};
|
||||
ipython-kernel = self.callCabal2nix "ipython-kernel" ipython-kernel-src {};
|
||||
haskell-src-exts = self.haskell-src-exts_1_20_1;
|
||||
haskell-src-meta = self.haskell-src-meta_0_8_0_2;
|
||||
ghc-parser = self.callCabal2nix "ghc-parser" ghc-parser-src {};
|
||||
ipython-kernel = self.callCabal2nix "ipython-kernel" ipython-kernel-src {};
|
||||
|
||||
haskell-src-exts = self.haskell-src-exts_1_20_1;
|
||||
haskell-src-meta = self.haskell-src-meta_0_8_0_2;
|
||||
hmatrix = self.hmatrix_0_18_2_0;
|
||||
|
||||
shelly = nixpkgs.haskell.lib.doJailbreak super.shelly;
|
||||
static-canvas = nixpkgs.haskell.lib.doJailbreak super.static-canvas;
|
||||
|
||||
} // displays self;
|
||||
};
|
||||
ihaskellEnv = haskellPackages.ghcWithPackages (self: [ self.ihaskell ] ++ packages self);
|
||||
|
Loading…
x
Reference in New Issue
Block a user