summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-04-30 15:52:19 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2019-04-30 15:52:19 +0200
commit3462fe27d9232c6e7e3472dc7fcc4c1561f9166d (patch)
tree5de7964838367fd02aef2b55ac7cb3e67ab7ddf9 /pkgs/tools/text
parent84a15876a3a9f92b6ba53a7ac18a7fd96f405bf9 (diff)
parent2e7c7dad92f4967c90c37a59894a301e2d073daf (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/peco/deps.nix4
-rw-r--r--pkgs/tools/text/qgrep/default.nix27
-rw-r--r--pkgs/tools/text/sd/default.nix24
3 files changed, 53 insertions, 2 deletions
diff --git a/pkgs/tools/text/peco/deps.nix b/pkgs/tools/text/peco/deps.nix
index 1b884ef995e8..29bae2de5b51 100644
--- a/pkgs/tools/text/peco/deps.nix
+++ b/pkgs/tools/text/peco/deps.nix
@@ -41,8 +41,8 @@
fetch = {
type = "git";
url = "https://github.com/nsf/termbox-go";
- rev = "abe82ce5fb7a42fbd6784a5ceb71aff977e09ed8";
- sha256 = "156i8apkga8b3272kjhapyqwspgcfkrr9kpqwc5lii43k4swghpv";
+ rev = "e2050e41c8847748ec5288741c0b19a8cb26d084";
+ sha256 = "181b1df2b6fcn5wizq2qqxl1kwqbih5k15n08rx3bcz36q34n23s";
};
}
{
diff --git a/pkgs/tools/text/qgrep/default.nix b/pkgs/tools/text/qgrep/default.nix
new file mode 100644
index 000000000000..5f0e7461361d
--- /dev/null
+++ b/pkgs/tools/text/qgrep/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+ version = "1.1";
+ pname = "qgrep";
+
+ src = fetchFromGitHub {
+ owner = "zeux";
+ repo = "qgrep";
+ rev = "v${version}";
+ sha256 = "046ccw34vz2k5jn6gyxign5gs2qi7i50jy9b74wqv7sjf5zayrh0";
+ fetchSubmodules = true;
+ };
+
+ installPhase = ''
+ install -Dm755 qgrep $out/bin/qgrep
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Fast regular expression grep for source code with incremental index updates";
+ homepage = https://github.com/zeux/qgrep;
+ license = licenses.mit;
+ maintainers = [ maintainers.yrashk ];
+ platforms = platforms.all;
+ };
+
+}
diff --git a/pkgs/tools/text/sd/default.nix b/pkgs/tools/text/sd/default.nix
new file mode 100644
index 000000000000..6a279b834661
--- /dev/null
+++ b/pkgs/tools/text/sd/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchFromGitHub, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "sd";
+ version = "0.5.0";
+
+ src = fetchFromGitHub {
+ owner = "chmln";
+ repo = pname;
+ rev = "sd-${version}";
+ sha256 = "1y44qizciir75d1srwm1mlskhflab2b6153d19vblw410in82f5d";
+ };
+
+ cargoSha256 = "1gls68lw8a2c3gsav70l2wasrgav68q5w1nf50jsrbqq9kb4i7nb";
+
+ meta = with stdenv.lib; {
+ description = "Intuitive find & replace CLI (sed alternative)";
+ homepage = https://github.com/chmln/sd;
+ license = licenses.mit;
+ platforms = platforms.all;
+ maintainers = [ maintainers.amar1729 ];
+ };
+}