flake.nix: add internal programs as runnables

These are useful when testing the programs on raw
input, compared to having to test the program
through a searcher.
This commit is contained in:
Oystein Kristoffer Tveit 2022-11-29 16:18:05 +01:00
parent 3d92480602
commit 74ed72ff0b
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 10 additions and 1 deletions

View File

@ -19,7 +19,16 @@
}; };
in builtins.mapAttrs toApp { in builtins.mapAttrs toApp {
inherit (self.packages.${system}) inherit (self.packages.${system})
home-manager-search nix-option-search nix-package-search nix2json; home-manager-search nix-option-search nix-package-search;
} // {
nix2json = {
type = "app";
program = "${self.packages.${system}.nix2json}/bin/nix2json";
};
xmldoc2txt = {
type = "app";
program = "${self.packages.${system}.xmldoc2txt}/bin/xmldoc2txt";
};
}; };
hydraJobs = with pkgs.lib; hydraJobs = with pkgs.lib;