2024-04-27 03:39:10 +00:00
|
|
|
#
|
|
|
|
# Helper for building the wobsite.
|
|
|
|
#
|
|
|
|
# vim: et:ts=2:sw=2:
|
|
|
|
#
|
|
|
|
{
|
|
|
|
#
|
|
|
|
# The sources we depend on.
|
|
|
|
#
|
|
|
|
inputs = {
|
2024-07-10 17:42:53 +00:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
2024-04-27 03:39:10 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
2024-04-27 07:10:42 +00:00
|
|
|
# For local development...
|
2024-04-27 03:39:10 +00:00
|
|
|
devShell = pkgs.mkShell { buildInputs = [ pkgs.hugo pkgs.sass ]; };
|
2024-04-27 07:10:42 +00:00
|
|
|
|
|
|
|
# ... and remote deployment.
|
|
|
|
packages = {
|
|
|
|
site-content = pkgs.callPackage ./nix/site-content.nix {};
|
|
|
|
};
|
|
|
|
|
2024-04-27 03:39:10 +00:00
|
|
|
});
|
|
|
|
}
|