Unverified Commit 4d8bb34e authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

nps: init at 0.2.9 (#376969)

parents dfdc4864 cd243f58
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -17235,6 +17235,12 @@
    githubId = 72201;
    name = "Ole Jørgen Brønner";
  };
  olemussmann = {
    email = "nixpkgs-account@ole.mn";
    github = "OleMussmann";
    githubId = 14004859;
    name = "Ole Mussmann";
  };
  olifloof = {
    email = "benmoreosm@gmail.com";
    github = "olifloof";
+45 −0
Original line number Diff line number Diff line
{
  lib,
  nix,
  fetchFromGitHub,
  rustPlatform,
}:

rustPlatform.buildRustPackage rec {
  pname = "nps";
  version = "0.2.9";

  src = fetchFromGitHub {
    owner = "OleMussmann";
    repo = "nps";
    tag = "v${version}";
    hash = "sha256-q/PkigsNAI7MCmeDFBMGuZJFXVL95pQCNOVhNvBH9dc=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-MThyvhzZXRM4l0K8csLDldMVKiDxKZ5EIFATGVpGpVc=";

  nativeCheckInputs = [ nix ];

  meta = {
    description = "Cache the nix package list, query and sort results by relevance";
    longDescription = ''
      Find SEARCH_TERM in available nix packages and sort results by relevance.

      List up to three columns, the latter two being optional:
      PACKAGE_NAME  <PACKAGE_VERSION>  <PACKAGE_DESCRIPTION>

      Matches are sorted by type. Show 'indirect' matches first, then 'direct' matches, and finally 'exact' matches.

        indirect  fooSEARCH_TERMbar (SEARCH_TERM appears in any column)
        direct    SEARCH_TERMbar (PACKAGE_NAME starts with SEARCH_TERM)
        exact     SEARCH_TERM (PACKAGE_NAME is exactly SEARCH_TERM)
    '';
    changelog = "https://github.com/OleMussmann/nps/releases/tag/v${version}";
    homepage = "https://github.com/OleMussmann/nps";
    license = lib.licenses.mit;
    mainProgram = "nps";
    maintainers = with lib.maintainers; [ olemussmann ];
    platforms = lib.platforms.all;
  };
}