depot/third_party/nixpkgs/pkgs/by-name/ri/rippkgs/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
751 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, sqlite
}:
rustPlatform.buildRustPackage rec {
pname = "rippkgs";
version = "1.1.0";
src = fetchFromGitHub {
owner = "replit";
repo = "rippkgs";
rev = "refs/tags/v${version}";
hash = "sha256-qQZnD9meczfsQv1R68IiUfPq730I2IyesurrOhtA3es=";
};
cargoHash = "sha256-hGSHgJ2HVCNqTBsTQIZlSE89FKqdMifuJyAGl3utF2I=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
sqlite
];
meta = {
description = "CLI for indexing and searching packages in Nix expressions";
homepage = "https://github.com/replit/rippkgs";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ eclairevoyant cdmistman ];
mainProgram = "rippkgs";
};
}