tvl-depot/services/tazblog/default.nix
Vincent Ambo 45d63bce17 feat(nix): Filter projects that should be built by CI
Instead of specifying CI projects manually, this filters them to move
the CI configuration into the derivations `meta` attributes.
2019-11-15 23:25:41 +00:00

18 lines
457 B
Nix

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