about summary refs log tree commit diff
path: root/web/tazblog/default.nix
blob: eecadff6ba1785652bbf96fccd5df9b666e38ef2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Build configuration for the blog using plain Nix.
#
# tazblog.nix was generated using cabal2nix.

{ pkgs, ... }:

let
  inherit (pkgs.third_party) writeShellScriptBin haskell;
  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;
  meta.enableCI = true;
})