tvl-depot/services/tazblog/default.nix
Vincent Ambo 0d93594347 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.
2019-09-03 00:43:49 +01:00

16 lines
406 B
Nix

# Build configuration for the blog using plain Nix.
#
# tazblog.nix was generated using cabal2nix.
{ writeShellScriptBin, haskell }:
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;
})