forked from lix-project/lix-website
31 lines
651 B
Nix
31 lines
651 B
Nix
#
|
|
# Helper for building the wobsite.
|
|
#
|
|
# vim: et:ts=2:sw=2:
|
|
#
|
|
{
|
|
#
|
|
# The sources we depend on.
|
|
#
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
# For local development...
|
|
devShell = pkgs.mkShell { buildInputs = [ pkgs.hugo pkgs.sass ]; };
|
|
|
|
# ... and remote deployment.
|
|
packages = {
|
|
site-content = pkgs.callPackage ./nix/site-content.nix {};
|
|
};
|
|
|
|
});
|
|
}
|