Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # default.nix
- let
- pkgs = import <nixpkgs> { };
- in
- pkgs.haskellPackages.callPackage ./blog.nix {}
- # blog.nix
- { mkDerivation, base, hakyll, pandoc, stdenv }:
- mkDerivation {
- pname = "blog";
- version = "0.1.0.0";
- src = ./.;
- isLibrary = false;
- isExecutable = true;
- executableHaskellDepends = [ base hakyll pandoc ];
- license = stdenv.lib.licenses.bsd3;
- }
- # shell.nix
- ??
- 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:
- nix-shell --packages 'haskellPackages.ghcWithHoogle (pkgs: [ pkgs.text ])' haskellPackages.ghcid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement