diff --git a/pkgs/development/tools/rust/roogle/default.nix b/pkgs/development/tools/rust/roogle/default.nix new file mode 100644 index 000000000000..7def38d19913 --- /dev/null +++ b/pkgs/development/tools/rust/roogle/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5462c9f43f9c..ae85c302b0c3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12540,6 +12540,7 @@ with pkgs; rhack = callPackage ../development/tools/rust/rhack { }; inherit (rustPackages) rls; + roogle = callPackage ../development/tools/rust/roogle { }; rustfmt = rustPackages.rustfmt; rustracer = callPackage ../development/tools/rust/racer { inherit (darwin.apple_sdk.frameworks) Security;