Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # shell.nix
- { pkgs ? import <nixpkgs> {} }:
- let
- project' = pkgs.haskell.lib.addBuildTools
- (pkgs.haskellPackages.callPackage ./default.nix {})
- # i don't understand the line above. Shouldn't hoogle be available only on the package defined below,
- # and not on Snap, which comes from the derivation in default.nix
- [ (pkgs.haskellPackages.ghcWithHoogle (haskellPackages: with haskellPackages; [
- ghcid
- # ghc-mod
- ])) ];
- in
- project'.env
- # default.nix
- { mkDerivation, base, snap, stdenv }:
- mkDerivation {
- pname = "server";
- version = "0.1.0.0";
- src = ./.;
- isLibrary = false;
- isExecutable = true;
- executableHaskellDepends = [ base snap ];
- license = stdenv.lib.licenses.bsd3;
- }
Add Comment
Please, Sign In to add comment