2019-06-29 15:11:56 +02:00
|
|
|
# Build configuration for the blog using plain Nix.
|
|
|
|
#
|
|
|
|
# tazblog.nix was generated using cabal2nix.
|
|
|
|
|
2019-11-15 16:26:08 +01:00
|
|
|
{ pkgs, ... }:
|
2019-06-29 15:11:56 +02:00
|
|
|
|
2019-09-03 01:43:49 +02:00
|
|
|
let
|
2019-12-09 03:54:35 +01:00
|
|
|
inherit (pkgs.third_party) writeShellScriptBin haskell;
|
2019-09-03 01:43:49 +02:00
|
|
|
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;
|
2019-11-16 00:25:41 +01:00
|
|
|
meta.enableCI = true;
|
2019-09-03 01:43:49 +02:00
|
|
|
})
|