2019-06-29 15:11:56 +02:00
|
|
|
# Build configuration for the blog using plain Nix.
|
|
|
|
#
|
|
|
|
# tazblog.nix was generated using cabal2nix.
|
|
|
|
|
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
2019-08-23 13:03:17 +02:00
|
|
|
let tazblog = pkgs.haskell.packages.ghc865.callPackage ./tazblog.nix {};
|
|
|
|
in pkgs.writeShellScriptBin "tazblog" ''
|
|
|
|
export PORT=8000
|
|
|
|
export RESOURCE_DIR=${./static}
|
|
|
|
exec ${tazblog}/bin/tazblog
|
|
|
|
''
|