1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/tools/text/sd/default.nix

27 lines
686 B
Nix
Raw Normal View History

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