From 3679d1b17e1e2ba81eca459a7e41169542eb5203 Mon Sep 17 00:00:00 2001 From: Amar1729 Date: Fri, 26 Apr 2019 00:37:21 -0400 Subject: [PATCH] sd: init at 0.5.0 --- pkgs/tools/text/sd/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/text/sd/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 07d68f856c7b..d005d1c88dca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5575,6 +5575,8 @@ in scrypt = callPackage ../tools/security/scrypt { }; + sd = callPackage ../tools/text/sd { }; + sdate = callPackage ../tools/misc/sdate { }; sdcv = callPackage ../applications/misc/sdcv { };