mirror of
https://github.com/h7x4/nix-attr-search.git
synced 2024-12-13 16:31:48 +01:00
h7x4
f6217e4c54
The project has grown quite a bit without me remembering to make any commits... Here's a summary of what has happened: - Make the project friendly towards non-flake users - Add searchers to be created: `nur-package-search`, `nix-lib-search` - Add misc util scripts for formatting and testing code. - Split templates into their own directory, as they get quite large after a while. - Add colorized templates. - Replace some of the xml tags with optionally colorized output. - Add `--no-color` option - Add json2nix script, which will convert the json-converted nix code back into nix.
25 lines
738 B
Nix
25 lines
738 B
Nix
{ pkgs ? import <nixpkgs> { }, nixpkgs ? <nixpkgs>
|
|
, home-manager ? <home-manager>, ... }: rec {
|
|
# Applications
|
|
home-manager-search = pkgs.callPackage ./home-manager-search.nix {
|
|
inherit home-manager;
|
|
inherit (internals) json2nix;
|
|
};
|
|
|
|
nix-option-search =
|
|
pkgs.callPackage ./nix-option-search.nix { inherit nixpkgs; };
|
|
|
|
nix-package-search = pkgs.callPackage ./nix-package-search.nix { };
|
|
|
|
internals = {
|
|
# Data sources
|
|
home-manager-json = home-manager.packages.${system}.docs-json;
|
|
nix-options-json =
|
|
(import "${nixpkgs}/nixos/release.nix" { inherit nixpkgs; }).options;
|
|
nix-packages-json = pkgs.emptyFile;
|
|
|
|
# Internal Tools
|
|
json2nix = pkgs.callPackage ./internals/json2nix { };
|
|
};
|
|
}
|