nte/flake.nix

33 lines
725 B
Nix
Raw Permalink Normal View History

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 {
2024-05-25 17:47:57 +02:00
default = import ./engine.nix pkgs;
2024-05-22 21:19:37 +02:00
}
);
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;
2024-05-25 17:47:57 +02:00
nte = engines.${system}.default ./example;
2024-05-22 21:55:06 +02:00
};
}
);
2024-05-22 21:19:37 +02:00
};
}