2016-06-25 18:57:11 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "sift-${version}";
|
|
|
|
version = "0.8.0";
|
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/svent/sift";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "svent";
|
|
|
|
repo = "sift";
|
|
|
|
sha256 = "1nb042k420xr6000ipwhqn41vg8jfp6ghq4z7y1sjnndkrhclzm1";
|
|
|
|
};
|
|
|
|
|
2016-09-10 11:04:13 +01:00
|
|
|
goDeps = ./deps.nix;
|
2016-06-25 18:57:11 +01:00
|
|
|
|
2017-05-17 01:56:35 +01:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
|
|
install_name_tool -delete_rpath $out/lib -add_rpath $bin $bin/bin/sift
|
|
|
|
'';
|
|
|
|
|
2016-06-25 18:57:11 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "sift is a fast and powerful alternative to grep";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://sift-tool.org;
|
2016-06-25 18:57:11 +01:00
|
|
|
maintainers = [ maintainers.carlsverre ];
|
|
|
|
license = licenses.gpl3;
|
2017-05-17 01:56:35 +01:00
|
|
|
platforms = platforms.all;
|
2016-06-25 18:57:11 +01:00
|
|
|
};
|
|
|
|
}
|