Skip to content

Commit

Permalink
Add Nix installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Apr 21, 2024
1 parent 0566752 commit 2b4140e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,25 @@ queries, such as `nix-search -e 'description contains "foo" and name contains

### Nix

TODO: make `default.nix`
You can install `nix-search` like so:

```nix
let
nix-search = import (pkgs.fetchFromGitHub {
owner = "diamondburned";
repo = "nix-search";
rev = "<REV>";
sha256 = "<SHA256>";
});
in
{
environment.systemPackages = [ nix-search ];
}
```

If you're using Flakes, you can also add `github:diamondburned/nix-flakes` as
an input and use `nix-flakes.packages.${system}.default`.

### Go

Expand Down

0 comments on commit 2b4140e

Please sign in to comment.