feat(tazblog): Add a Nix shell expression that includes GHC with deps
This commit is contained in:
parent
008be5c2e1
commit
f298bdd183
1 changed files with 11 additions and 0 deletions
11
services/tazblog/shell.nix
Normal file
11
services/tazblog/shell.nix
Normal 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 ];
|
||||
}
|
Loading…
Reference in a new issue