base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ni / nix-search / package.nix
blob9e8342414b5b21f7733b61847f562271872d897e
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   nix-update-script,
6 }:
8 buildGoModule rec {
9   pname = "nix-search";
10   version = "0.4.0";
12   src = fetchFromGitHub {
13     owner = "diamondburned";
14     repo = "nix-search";
15     rev = "v${version}";
16     hash = "sha256-dOdcXKfSwi0THOjtgP3O/46SWoUY+T7LL9nGwOXXJfw=";
17   };
19   vendorHash = "sha256-bModWDH5Htl5rZthtk/UTw/PXT+LrgyBjsvE6hgIePY=";
21   ldflags = [
22     "-s"
23     "-w"
24   ];
26   passthru.updateScript = nix-update-script { };
28   meta = {
29     description = "Nix-channel-compatible package search";
30     homepage = "https://github.com/diamondburned/nix-search";
31     license = lib.licenses.gpl3Only;
32     mainProgram = "nix-search";
33     maintainers = with lib.maintainers; [ azuwis ];
34     platforms = lib.platforms.all;
35   };