diff options
author | Vincent Ambo <tazjin@google.com> | 2019-09-02T23·43+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-09-02T23·43+0100 |
commit | 0d93594347a9730187184fcfc292c6bc987cb8d5 (patch) | |
tree | 480309667749dc6a896e08f0127d64ad6abfacfc /services/tazblog | |
parent | 5e4157e4a2a0da56097d1ebfc79352a942a90198 (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.
Diffstat (limited to 'services/tazblog')
-rw-r--r-- | services/tazblog/default.nix | 16 |
1 files 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; +}) |