Merge pull request #4 from tazjin/fix/blog-substitutes

fix(tazblog): Explicitly allow substitutes for the blog
This commit is contained in:
Vincent Ambo 2019-09-03 01:11:55 +01:00 committed by GitHub
commit be28462a8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
})