03bfe08e1d
This moves the various projects from "type-based" folders (such as "services" or "tools") into more appropriate semantic folders (such as "nix", "ops" or "web"). Deprecated projects (nixcon-demo & gotest) which only existed for testing/demonstration purposes have been removed. (Note: *all* builds are broken with this commit)
18 lines
469 B
Nix
18 lines
469 B
Nix
# 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;
|
|
})
|