Guest User

Untitled

a guest
Feb 28th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # shell.nix
  2. { pkgs ? import <nixpkgs> {} }:
  3. let
  4. project' = pkgs.haskell.lib.addBuildTools
  5. (pkgs.haskellPackages.callPackage ./default.nix {})
  6. # i don't understand the line above. Shouldn't hoogle be available only on the package defined below,
  7. # and not on Snap, which comes from the derivation in default.nix
  8. [ (pkgs.haskellPackages.ghcWithHoogle (haskellPackages: with haskellPackages; [
  9. ghcid
  10. # ghc-mod
  11. ])) ];
  12. in
  13. project'.env
  14.  
  15.  
  16. # default.nix
  17. { mkDerivation, base, snap, stdenv }:
  18. mkDerivation {
  19. pname = "server";
  20. version = "0.1.0.0";
  21. src = ./.;
  22. isLibrary = false;
  23. isExecutable = true;
  24. executableHaskellDepends = [ base snap ];
  25. license = stdenv.lib.licenses.bsd3;
  26. }
Add Comment
Please, Sign In to add comment