summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/sift
diff options
context:
space:
mode:
authorCarl Sverre <accounts@carlsverre.com>2016-06-25 10:57:11 -0700
committerCarl Sverre <accounts@carlsverre.com>2016-06-25 14:10:34 -0700
commita12ec263fabd1fa35fd1085c35a5d713b2d1e381 (patch)
treea32be658f6a4f84286c58c6f00c25f4769a5755a /pkgs/tools/text/sift
parent9ef6dceca9c050c1b2477d6d7b28921afe06df2e (diff)
sift: init at 0.8.0
sift is a fast and powerful alternative to grep. https://sift-tool.org
Diffstat (limited to 'pkgs/tools/text/sift')
-rw-r--r--pkgs/tools/text/sift/default.nix26
-rw-r--r--pkgs/tools/text/sift/deps.json10
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/text/sift/default.nix b/pkgs/tools/text/sift/default.nix
new file mode 100644
index 000000000000..459334e2b3c8
--- /dev/null
+++ b/pkgs/tools/text/sift/default.nix
@@ -0,0 +1,26 @@
+{ 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";
+ };
+
+ goDeps = ./deps.json;
+
+ meta = with lib; {
+ description = "sift is a fast and powerful alternative to grep";
+ homepage = "https://sift-tool.org";
+ maintainers = [ maintainers.carlsverre ];
+ license = licenses.gpl3;
+ platforms = platforms.all;
+ };
+}
diff --git a/pkgs/tools/text/sift/deps.json b/pkgs/tools/text/sift/deps.json
new file mode 100644
index 000000000000..649660353ad2
--- /dev/null
+++ b/pkgs/tools/text/sift/deps.json
@@ -0,0 +1,10 @@
+[
+ {
+ "include": "../../libs.json",
+ "packages": [
+ "github.com/svent/go-flags",
+ "github.com/svent/go-nbreader",
+ "golang.org/x/crypto"
+ ]
+ }
+]