Skip to content

Instantly share code, notes, and snippets.

@mebubo
Created April 7, 2020 19:45
Show Gist options
  • Save mebubo/cb86a7d9d0a492bb5f2091754a6af968 to your computer and use it in GitHub Desktop.
Save mebubo/cb86a7d9d0a492bb5f2091754a6af968 to your computer and use it in GitHub Desktop.
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