summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-21T11·17+0100
committerVincent Ambo <tazjin@google.com>2019-08-21T11·17+0100
commitf298bdd183c2184a694952c91158a282abf37d43 (patch)
tree0b61df3cc671b28f60e2c4df07afe7519888c9a2
parent008be5c2e195761167b51c4c4b6bd1527fd9d854 (diff)
feat(tazblog): Add a Nix shell expression that includes GHC with deps r/49
-rw-r--r--services/tazblog/shell.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/services/tazblog/shell.nix b/services/tazblog/shell.nix
new file mode 100644
index 000000000000..196ffc983a34
--- /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 ];
+}