Last active
May 21, 2022 13:25
-
-
Save idontgetoutmuch/b0c964d10ed61ed8b2d0936e64b7dd27 to your computer and use it in GitHub Desktop.
This file contains 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 | |
pkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; | |
myHaskellPackageOverlay = self: super: { | |
myHaskellPackages = super.haskell.packages.ghc922.override { | |
overrides = hself: hsuper: rec { | |
random = self.haskell.lib.addBuildDepends( | |
hsuper.callHackageDirect { | |
pkg = "random"; | |
ver = "1.2.1.1"; | |
sha256 = "sha256-+oDdFTsmai2E/ICr18Kd+uHVhMQvud2hBve5IJIMKMA="; | |
} { }) [ ]; | |
}; | |
}; | |
}; | |
in | |
{ nixpkgs ? import pkgs { overlays = [ myHaskellPackageOverlay ]; }}: | |
let | |
haskellDeps = ps: with ps; [ | |
base random | |
]; | |
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