dramforever/nix-dram

nix-search-pretty

Closed this issue · 4 comments

How do I get nix-search-pretty working? I've got the package from this flake installed but it looks I also need to apply a patch to nixpkgs. Can you provide an example of how to do this from a flake?

I noticed that I forgot to include this in the readme. Assuming you got nix and nix-search-pretty from this flake you should be able to use this bash function as nix-search.

nix-search() {
    nix search --json "$@" | nix-search-pretty
}

I've added nix-search to this flake in 88412ac. It should work out of the box with no changes to nixpkgs.

This is super helpful, thanks! I ended up applying the patch to nix manually. Should have looked closer at this flake's outputs. In any case, really nice work!

Applying the patch manually is also a good way to use this repository, I'd say