Skip to content

Instantly share code, notes, and snippets.

@evertedsphere
Last active April 10, 2020 14:48
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 evertedsphere/d38a55b29928a87c9df888c749601d03 to your computer and use it in GitHub Desktop.
Save evertedsphere/d38a55b29928a87c9df888c749601d03 to your computer and use it in GitHub Desktop.
let
compiler = "ghc865";
projectName = "serv-int";
withHoogle = false;
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { };
inherit (import sources.gitignore { inherit (pkgs) lib; }) gitignoreSource;
hsPkgs = pkgs.haskell.packages.${compiler}.override {
overrides = hself: hsuper: {
# "${projectName}" =
# hself.callCabal2nix "${projectName}" (gitignoreSource ./.) { };
};
};
shell = hsPkgs.shellFor {
packages = p: [
# p."${projectName}"
];
buildInputs = with pkgs; [
hsPkgs.cabal-install
ghcid
ormolu
hlint
(import sources.niv { }).niv
pkgs.nixpkgs-fmt
];
inherit withHoogle;
};
# exe = pkgs.haskell.lib.justStaticExecutables (hpkgs."${projectName}");
in {
inherit shell;
# inherit exe;
inherit pkgs;
inherit hsPkgs;
# "${projectName}" = hsPkgs."${projectName}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment