Skip to content

Instantly share code, notes, and snippets.

@mebubo
Last active May 1, 2020 19:55
Show Gist options
  • Save mebubo/877a3956801abe510d6469c806908e73 to your computer and use it in GitHub Desktop.
Save mebubo/877a3956801abe510d6469c806908e73 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: {
tmp-postgres = pkgs.haskell.lib.unmarkBroken super.tmp-postgres;
};
};
};
};
hp = p: with p; [
base
hedgehog
lifted-base
monad-control
mtl
postgresql-simple
resource-pool
text
time
tmp-postgres
transformers
transformers-base
];
ghc = pkgs.haskellPackages.ghcWithPackages hp;
env = pkgs.stdenv.mkDerivation {
name = "env";
buildInputs = [ ghc pkgs.postgresql ];
};
haskellPackages = pkgs.haskellPackages;
tags = pkgs.callPackage ../haskell-sources-tags-nix/tag-sources.nix {
inherit pkgs haskellPackages;
packages = hp haskellPackages;
};
in
{ inherit env tags; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment