about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ni/nix-search-cli/package.nix
blob: 56bde6ac04c228823f99d235331d4b00adb37f55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, buildGoModule
, fetchFromGitHub
, unstableGitUpdater
}:

buildGoModule {
  pname = "nix-search-cli";
  version = "unstable-2023-09-12";

  src = fetchFromGitHub {
    owner = "peterldowns";
    repo = "nix-search-cli";
    rev = "f3f1c53c72dadac06472a7112aeb486ab5dda695";
    hash = "sha256-YM1Lf7py79rU8aJE0PfQaMr5JWx5J1covUf1aCjRkc8=";
  };

  vendorHash = "sha256-JDOu7YdX9ztMZt0EFAMz++gD7n+Mn1VOe5g6XwrgS5M=";

  passthru.updateScript = unstableGitUpdater { };

  meta = with lib; {
    description = "CLI for searching packages on search.nixos.org";
    homepage = "https://github.com/peterldowns/nix-search-cli";
    license = licenses.mit;
    maintainers = with maintainers; [ donovanglover ];
    platforms = platforms.all;
    mainProgram = "nix-search";
  };
}