2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security
|
2019-04-25 21:37:21 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sd";
|
2020-08-02 06:17:57 -07:00
|
|
|
version = "0.7.6";
|
2019-04-25 21:37:21 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chmln";
|
|
|
|
repo = pname;
|
2020-03-31 14:30:56 -07:00
|
|
|
rev = "v${version}";
|
2020-08-02 06:17:57 -07:00
|
|
|
sha256 = "0c5bsqs6c55x4j640vhzlmbiylhp5agr7lx0jrwcjazfyvxihc01";
|
2019-04-25 21:37:21 -07:00
|
|
|
};
|
|
|
|
|
2020-08-02 06:17:57 -07:00
|
|
|
cargoSha256 = "1mksmdp1wnsjd8gw1g3l16a24fk05xa9mxygc0qklr41bqf8kw8b";
|
2019-06-16 13:00:00 -07:00
|
|
|
|
2021-01-15 01:19:50 -08:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2019-04-25 21:37:21 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2019-04-25 21:37:21 -07:00
|
|
|
description = "Intuitive find & replace CLI (sed alternative)";
|
2019-06-16 13:00:00 -07:00
|
|
|
homepage = "https://github.com/chmln/sd";
|
2019-04-25 21:37:21 -07:00
|
|
|
license = licenses.mit;
|
2020-11-17 03:02:06 -08:00
|
|
|
maintainers = with maintainers; [ amar1729 Br1ght0ne ];
|
2019-04-25 21:37:21 -07:00
|
|
|
};
|
|
|
|
}
|