2024-05-03 20:29:10 +02:00
|
|
|
{
|
|
|
|
description = "An http server that calls nsupdate internally";
|
2024-05-09 00:59:43 +02:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
systems.url = "github:nix-systems/default";
|
|
|
|
};
|
2024-05-03 20:29:10 +02:00
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2024-05-09 00:59:43 +02:00
|
|
|
systems,
|
2024-05-03 20:29:10 +02:00
|
|
|
}: let
|
2024-05-09 00:59:43 +02:00
|
|
|
forEachSupportedSystem = nixpkgs.lib.genAttrs (import systems);
|
2024-05-03 20:29:10 +02:00
|
|
|
in {
|
2024-05-09 00:59:43 +02:00
|
|
|
formatter = forEachSupportedSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
|
2024-05-03 20:29:10 +02:00
|
|
|
|
2024-05-09 00:59:43 +02:00
|
|
|
packages = forEachSupportedSystem (system: {
|
|
|
|
default = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {};
|
2024-05-03 20:29:10 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
overlays.default = final: prev: {
|
|
|
|
webnsupdate = final.callPackage ./default.nix {};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixosModules.default = ./module.nix;
|
|
|
|
|
2024-05-09 00:59:43 +02:00
|
|
|
devShells = forEachSupportedSystem (system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
2024-05-03 20:29:10 +02:00
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = [pkgs.cargo-insta];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|