on master help sign in
static-dhall/flake.nix
34 lines 922 B history raw
1{
2 description = "static-dhall: an opinionated static site generator using Dhall and Nix";
4 inputs = {
5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6 };
8 outputs = { self, nixpkgs }:
9 let
10 supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
11 forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system:
12 f {
13 pkgs = nixpkgs.legacyPackages.${system};
14 inherit system;
15 }
16 );
17 in
18 {
19 lib = forAllSystems ({ pkgs, ... }: {
20 buildSite = import ./nix/buildSite.nix { inherit pkgs; };
21 });
23 packages = forAllSystems ({ pkgs, ... }: {
24 example = import ./nix/buildSite.nix { inherit pkgs; } {
25 src = ./templates/default;
26 };
27 });
29 templates.default = {
30 path = ./templates/default;
31 description = "A basic static-dhall site";
32 };
33 };