2024-05-22 21:19:37 +02:00
|
|
|
{
|
|
|
|
description = "Nix Template Engine";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {nixpkgs, ...}: let
|
|
|
|
systems = ["x86_64-linux" "aarch64-linux"];
|
|
|
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
|
|
|
pkgsForEach = nixpkgs.legacyPackages;
|
2024-05-22 21:55:06 +02:00
|
|
|
in rec {
|
2024-05-22 21:19:37 +02:00
|
|
|
engines = forEachSystem (
|
|
|
|
system: let
|
|
|
|
pkgs = pkgsForEach.${system};
|
|
|
|
in {
|
|
|
|
default = import ./engine.nix pkgs;
|
|
|
|
}
|
|
|
|
);
|
2024-05-22 21:55:06 +02:00
|
|
|
|
|
|
|
examples = forEachSystem (
|
|
|
|
system: let
|
|
|
|
pkgs = pkgsForEach.${system};
|
|
|
|
in {
|
|
|
|
default = import ./example/default.nix {
|
|
|
|
inherit (pkgs) lib stdenv;
|
|
|
|
nte = engines.${system}.default;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2024-05-22 21:19:37 +02:00
|
|
|
};
|
|
|
|
}
|