From 0d93594347a9730187184fcfc292c6bc987cb8d5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 3 Sep 2019 00:43:49 +0100 Subject: 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. --- services/tazblog/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/services/tazblog/default.nix b/services/tazblog/default.nix index fa436b824cad..5dc3bdaf3eda 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; +}) -- cgit 1.4.1