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.
This commit is contained in:
Vincent Ambo 2019-09-03 00:43:49 +01:00
parent 5e4157e4a2
commit 0d93594347

View file

@ -4,9 +4,13 @@
{ writeShellScriptBin, haskell }:
let tazblog = haskell.packages.ghc865.callPackage ./tazblog.nix {};
in writeShellScriptBin "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;
})