summaryrefslogtreecommitdiff
path: root/flake.nix
blob: a9568847caf48a567e987fe0bda40840388de1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  description = "HTMLua HTML templating engine";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

  outputs = { self, nixpkgs }:
    let
      systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
      forAllSystems = nixpkgs.lib.genAttrs systems;
    in {
      packages = forAllSystems (system:
        let pkgs = import nixpkgs { inherit system; };
        in {
          htmlua = import ./default.nix { inherit pkgs; };
          default = self.packages.${system}.htmlua;
        });
    };
}