From 74ed72ff0b0c21991b49878706dd7cd1b1fbde34 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 29 Nov 2022 16:18:05 +0100 Subject: [PATCH] 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. --- flake.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 3e22526..02ddc4c 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,16 @@ }; in builtins.mapAttrs toApp { 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;