lix-website/flake.nix

31 lines
651 B
Nix
Raw Normal View History

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 = {
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...
2024-04-27 03:39:10 +00:00
devShell = pkgs.mkShell { buildInputs = [ pkgs.hugo pkgs.sass ]; };
# ... and remote deployment.
packages = {
site-content = pkgs.callPackage ./nix/site-content.nix {};
};
2024-04-27 03:39:10 +00:00
});
}