nixpkgs-suyu/pkgs/tools/text/platinum-searcher/default.nix

31 lines
852 B
Nix
Raw Normal View History

2016-06-06 02:28:52 +02:00
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2016-05-18 18:23:15 +02:00
buildGoPackage rec {
name = "the_platinum_searcher-${version}";
2017-04-30 21:51:58 +02:00
version = "2.1.5";
rev = "v${version}";
2016-05-18 18:23:15 +02:00
goPackagePath = "github.com/monochromegane/the_platinum_searcher";
src = fetchFromGitHub {
inherit rev;
owner = "monochromegane";
repo = "the_platinum_searcher";
2017-04-30 21:51:58 +02:00
sha256 = "1y7kl3954dimx9hp2bf1vjg1h52hj1v6cm4f5nhrqzwrawp0b6q0";
2016-05-18 18:23:15 +02:00
};
goDeps = ./deps.nix;
2016-05-18 18:23:15 +02:00
2017-04-30 21:51:58 +02:00
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
# fixes cycle between $out and $bin
install_name_tool -delete_rpath $out/lib $bin/bin/pt
'';
2016-05-18 18:23:15 +02:00
meta = with stdenv.lib; {
homepage = https://github.com/monochromegane/the_platinum_searcher;
description = "A code search tool similar to ack and the_silver_searcher(ag).";
platforms = platforms.all;
license = licenses.mit;
};
}