Created
April 7, 2020 19:45
-
-
Save mebubo/cb86a7d9d0a492bb5f2091754a6af968 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 = import <nixpkgs> { inherit config; }; | |
config = { | |
packageOverrides = pkgs: { | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = self: super: { | |
}; | |
}; | |
}; | |
}; | |
hp = p: with p; [ | |
base | |
aeson | |
containers | |
lens | |
lens-aeson | |
mtl | |
text | |
]; | |
ghc = pkgs.haskellPackages.ghcWithPackages hp; | |
env = pkgs.stdenv.mkDerivation { | |
name = "env"; | |
buildInputs = [ ghc ]; | |
}; | |
haskellPackages = pkgs.haskellPackages; | |
tags = pkgs.callPackage ../haskell-sources-tags-nix/tag-sources.nix { | |
inherit pkgs haskellPackages; | |
packages = hp haskellPackages; | |
}; | |
in | |
# nix-shell -A env | |
# nix-build --out-link dependencies -A tags shell.nix | |
{ inherit env tags; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment