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

27 lines
680 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";
2019-06-16 21:00:00 +01:00
version = "0.6.5";
2019-04-26 05:37:21 +01:00
src = fetchFromGitHub {
owner = "chmln";
repo = pname;
2019-06-16 21:00:00 +01:00
rev = version;
sha256 = "1vxljmd1vh245yhv095i3l44pk915zr2pix4v9r8pz2fynp2nnmj";
2019-04-26 05:37:21 +01:00
};
2019-06-16 21:00:00 +01:00
cargoSha256 = "1shqphbpn3ib28hnyib7mh1i5q56nshj864jm209s8qggbp96wp1";
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 ];
};
}