Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Last active March 3, 2020 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idontgetoutmuch/2142452009435f931cc7ac3a6a930f4f to your computer and use it in GitHub Desktop.
Save idontgetoutmuch/2142452009435f931cc7ac3a6a930f4f to your computer and use it in GitHub Desktop.
let
myHaskellPackageOverlay = self: super: {
myHaskellPackages = super.haskellPackages.override {
overrides = hself: hsuper: {
mkDerivation = args: hsuper.mkDerivation (args // {
doCheck = false;
doHaddock = false;
jailbreak = true;
});
random = hself.callCabal2nix "random" (builtins.fetchGit {
url = "https://github.com/idontgetoutmuch/random.git";
rev = "023e812545d2fac849ae64058d64590a63d2fe89";
ref = "avoid-name-clash";
}) { };
};
};
};
nixpkgs = import <nixpkgs> { overlays = [ myHaskellPackageOverlay ]; };
in
let
haskellDeps = ps: with ps; [
ps.pcg-random
ps.random
ps.QuickCheck
ps.splitmix
];
in
nixpkgs.stdenv.mkDerivation {
name = "env";
buildInputs = [
(nixpkgs.myHaskellPackages.ghcWithPackages haskellDeps)
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment