about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-09-02T23·43+0100
committerVincent Ambo <tazjin@google.com>2019-09-02T23·43+0100
commit0d93594347a9730187184fcfc292c6bc987cb8d5 (patch)
tree480309667749dc6a896e08f0127d64ad6abfacfc
parent5e4157e4a2a0da56097d1ebfc79352a942a90198 (diff)
fix(tazblog): Explicitly allow substitutes for the blog
Not entirely sure which part of the setup set this to 'false', but
this is potentially the key for why tazblog ends up being rebuilt all
the time.
-rw-r--r--services/tazblog/default.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/services/tazblog/default.nix b/services/tazblog/default.nix
index fa436b824c..5dc3bdaf3e 100644
--- a/services/tazblog/default.nix
+++ b/services/tazblog/default.nix
@@ -4,9 +4,13 @@
 
 { writeShellScriptBin, haskell }:
 
-let tazblog = haskell.packages.ghc865.callPackage ./tazblog.nix {};
-in writeShellScriptBin "tazblog" ''
-  export PORT=8000
-  export RESOURCE_DIR=${./static}
-  exec ${tazblog}/bin/tazblog
-''
+let
+  tazblog = haskell.packages.ghc865.callPackage ./tazblog.nix {};
+  wrapper =  writeShellScriptBin "tazblog" ''
+    export PORT=8000
+    export RESOURCE_DIR=${./static}
+    exec ${tazblog}/bin/tazblog
+  '';
+in wrapper.overrideAttrs(_: {
+  allowSubstitutes = true;
+})