summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..a956884
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,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;
+ });
+ };
+}