From 2b4140e1290a7e21c23798890afa4cb4a0fa7e11 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sun, 21 Apr 2024 00:08:58 -0700 Subject: [PATCH] Add Nix installation instructions --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b342fc3..e314783 100644 --- a/README.md +++ b/README.md @@ -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 = ""; + 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