Unverified Commit 0beaea2e authored by Donovan Glover's avatar Donovan Glover Committed by GitHub
Browse files

nix-search-cli: 0-unstable-2023-09-12 -> 0.2-unstable-2024-09-24 (#344603)

parents 6378f273 89ca8c79
Loading
Loading
Loading
Loading
+14 −17
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
, unstableGitUpdater
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  unstableGitUpdater,
}:

buildGoModule {
  pname = "nix-search-cli";
  version = "0-unstable-2023-09-12";
  version = "0.2-unstable-2024-09-24";

  src = fetchFromGitHub {
    owner = "peterldowns";
    repo = "nix-search-cli";
    rev = "f3f1c53c72dadac06472a7112aeb486ab5dda695";
    hash = "sha256-YM1Lf7py79rU8aJE0PfQaMr5JWx5J1covUf1aCjRkc8=";
    rev = "7d6b4c501ee448dc2e5c123aa4c6d9db44a6dd12";
    hash = "sha256-0Zms/QVCUKxILLLJYsaodSW64DJrVr/yB13SnNL8+Wg=";
  };

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

  passthru.updateScript = unstableGitUpdater {
    # Almost every commit is tagged as "release-<unix-time>-<commit>", software doesn't keep track of its version
    # Using 0 feels closer to what the tagging is trying to express
    hardcodeZeroVersion = true;
  };
  passthru.updateScript = unstableGitUpdater { };

  meta = with lib; {
  meta = {
    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;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ donovanglover ];
    platforms = lib.platforms.all;
    mainProgram = "nix-search";
  };
}