From f298bdd183c2184a694952c91158a282abf37d43 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 21 Aug 2019 12:17:03 +0100 Subject: feat(tazblog): Add a Nix shell expression that includes GHC with deps --- services/tazblog/shell.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 services/tazblog/shell.nix (limited to 'services/tazblog') diff --git a/services/tazblog/shell.nix b/services/tazblog/shell.nix new file mode 100644 index 0000000000..196ffc983a --- /dev/null +++ b/services/tazblog/shell.nix @@ -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 ]; +} -- cgit 1.4.1