nixpkgs/pkgs/development/tools/rust/roogle/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
774 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "roogle";
version = "0.1.4";
src = fetchFromGitHub {
owner = "hkmatsumoto";
repo = pname;
rev = version;
sha256 = "1h0agialbvhhiijkdnr47y7babq432limdl6ag2rmjfs7yishn4r";
};
cargoSha256 = "sha256-CzFfFKTmBUAafk8PkkWmUkRIyO+yEhmCfN1zsLRq4Iw=";
postInstall = ''
mkdir -p $out/share/roogle
cp -r assets $out/share/roogle
'';
meta = with lib; {
description = "A Rust API search engine which allows you to search functions by names and type signatures";
mainProgram = "roogle";
homepage = "https://github.com/hkmatsumoto/roogle";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda ];
};
}