/pkgs/tools/text/ripgrep/default.nix

https://github.com/copumpkin/nixpkgs · Nix · 25 lines · 20 code · 5 blank · 0 comment · 0 complexity · cb0fdc1b7bb1deafed207dd241930faf MD5 · raw file

  1. { stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
  2. with rustPlatform;
  3. buildRustPackage rec {
  4. name = "ripgrep-${version}";
  5. version = "0.2.1";
  6. src = fetchFromGitHub {
  7. owner = "BurntSushi";
  8. repo = "ripgrep";
  9. rev = "${version}";
  10. sha256 = "0whw6hqjkf6sysrfv931jaia2hqhy8m9aa5rxax1kygm4snz4j85";
  11. };
  12. depsSha256 = "10f7pkgaxwizl7kzhkry7wx1rgm9wsybwkk92myc29s7sqir2mx4";
  13. meta = with stdenv.lib; {
  14. description = "An untility that combines the usability of The Silver Searcher with the raw speed of grep";
  15. homepage = https://github.com/BurntSushi/ripgrep;
  16. license = with licenses; [ unlicense ];
  17. maintainers = [ maintainers.tailhook ];
  18. platforms = platforms.all;
  19. };
  20. }