Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "roogle"; 5 version = "0.1.4"; 6 7 src = fetchFromGitHub { 8 owner = "hkmatsumoto"; 9 repo = pname; 10 rev = version; 11 sha256 = "1h0agialbvhhiijkdnr47y7babq432limdl6ag2rmjfs7yishn4r"; 12 }; 13 14 cargoSha256 = "sha256-CzFfFKTmBUAafk8PkkWmUkRIyO+yEhmCfN1zsLRq4Iw="; 15 16 postInstall = '' 17 mkdir -p $out/share/roogle 18 cp -r assets $out/share/roogle 19 ''; 20 21 meta = with lib; { 22 description = "A Rust API search engine which allows you to search functions by names and type signatures"; 23 homepage = "https://github.com/hkmatsumoto/roogle"; 24 license = with licenses; [ mit /* or */ asl20 ]; 25 maintainers = with maintainers; [ figsoda ]; 26 }; 27}