about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/rust/roogle/default.nix
blob: 7def38d19913168837a0dc03c3a01f728fff5597 (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
{ 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";
    homepage = "https://github.com/hkmatsumoto/roogle";
    license = with licenses; [ mit /* or */ asl20 ];
    maintainers = with maintainers; [ figsoda ];
  };
}