summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorSarah Brofeldt <sbrofeldt@gmail.com>2019-04-27 08:07:54 +0200
committerGitHub <noreply@github.com>2019-04-27 08:07:54 +0200
commitf96bf5bb2e80fe371b30374ca4aaa9ffc371a048 (patch)
tree527094d3f040ea172a82e0308c886f19813b7239 /pkgs/tools/text
parentfabe6309219580840171e391e88e088b33e7e21f (diff)
parent3679d1b17e1e2ba81eca459a7e41169542eb5203 (diff)
Merge pull request #60241 from Amar1729/init/sd
sd: init at 0.5.0
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/sd/default.nix24
1 files changed, 24 insertions, 0 deletions
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 ];
+ };
+}