feat(tazblog): Add a Nix shell expression that includes GHC with deps

This commit is contained in:
Vincent Ambo 2019-08-21 12:17:03 +01:00
parent 008be5c2e1
commit f298bdd183

View file

@ -0,0 +1,11 @@
{ pkgs ? import ../../default.nix {} }:
let tazblog = import ./tazblog.nix;
depNames = with builtins; filter (
p: hasAttr p pkgs.haskellPackages
) (attrNames (functionArgs tazblog));
ghc = pkgs.ghc.withPackages(p: map (x: p."${x}") depNames);
in pkgs.stdenv.mkDerivation {
name = "shell";
buildInputs = [ ghc ];
}