Advertisement
Guest User

Untitled

a guest
Feb 24th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. # default.nix
  2. let
  3. pkgs = import <nixpkgs> { };
  4. in
  5. pkgs.haskellPackages.callPackage ./blog.nix {}
  6.  
  7.  
  8. # blog.nix
  9. { mkDerivation, base, hakyll, pandoc, stdenv }:
  10. mkDerivation {
  11. pname = "blog";
  12. version = "0.1.0.0";
  13. src = ./.;
  14. isLibrary = false;
  15. isExecutable = true;
  16. executableHaskellDepends = [ base hakyll pandoc ];
  17. license = stdenv.lib.licenses.bsd3;
  18. }
  19.  
  20. # shell.nix
  21. ??
  22.  
  23. How would write the shell.nix file that calls blog.nix in the same way default.nix does but also has the logic to include hoogle and ghcid, similar to what this command does:
  24. nix-shell --packages 'haskellPackages.ghcWithHoogle (pkgs: [ pkgs.text ])' haskellPackages.ghcid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement