Created
February 29, 2020 09:44
-
-
Save idontgetoutmuch/e7a1ff7fef92cd8ceedf593f8fd19287 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let | |
| myHaskellPackageOverlay = self: super: { | |
| haskellPackages = super.haskellPackages.override { | |
| overrides = hself: hsuper: { | |
| mkDerivation = args: hsuper.mkDerivation (args // { | |
| doCheck = false; | |
| doHaddock = false; | |
| jailbreak = true; | |
| }); | |
| random = | |
| let newRandomSrc = builtins.fetchGit { | |
| url = "https://github.com/idontgetoutmuch/random.git"; | |
| rev = "83262ccd8a2d4b8f29b14c535b6bdf997bc7a497"; | |
| ref = "interface-to-performance"; | |
| }; | |
| in | |
| # Since cabal2nix has a transitive dependency on random, we need to | |
| # get the callCabal2nix function from the normal haskellPackages that | |
| # is not being overridden. | |
| (import <nixpkgs> {}).haskell.lib.dontCheck ((import <nixpkgs> {}).haskellPackages.callCabal2nix "random" newRandomSrc { }); | |
| }; | |
| }; | |
| }; | |
| in | |
| { pkgs ? import <nixpkgs> { overlays = [ myHaskellPackageOverlay ]; }, doBenchmark ? false }: | |
| let | |
| haskellDeps = ps: with ps; [ | |
| random # (pkgs.haskell.lib.dontCheck random) | |
| splitmix # (pkgs.haskell.lib.doJailbreak splitmix) | |
| ]; | |
| in | |
| pkgs.stdenv.mkDerivation { | |
| name = "env"; | |
| buildInputs = [ | |
| (pkgs.haskellPackages.ghcWithPackages haskellDeps) | |
| ]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment