nixpkgs/pkgs/tools/text/sd/default.nix

27 lines
702 B
Nix
Raw Normal View History

2019-06-16 20:00:00 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, Security
2019-04-26 04:37:21 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "sd";
2020-05-05 10:46:38 +00:00
version = "0.7.5";
2019-04-26 04:37:21 +00:00
src = fetchFromGitHub {
owner = "chmln";
repo = pname;
2020-03-31 21:30:56 +00:00
rev = "v${version}";
2020-05-05 10:46:38 +00:00
sha256 = "04jsni80jzhbb106283df34cdyp5p362l6m29kp30hnc6x49853q";
2019-04-26 04:37:21 +00:00
};
2020-05-05 10:46:38 +00:00
cargoSha256 = "1gwb76zys7gky42clzjs5g4hhgpfvzcw63chw9mnj703c7h0cgfh";
2019-06-16 20:00:00 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
2019-04-26 04:37:21 +00:00
meta = with stdenv.lib; {
description = "Intuitive find & replace CLI (sed alternative)";
2019-06-16 20:00:00 +00:00
homepage = "https://github.com/chmln/sd";
2019-04-26 04:37:21 +00:00
license = licenses.mit;
platforms = platforms.all;
2020-05-05 10:48:46 +00:00
maintainers = with maintainers; [ amar1729 filalex77 ];
2019-04-26 04:37:21 +00:00
};
}