-
-
Save evertedsphere/d38a55b29928a87c9df888c749601d03 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 | |
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