2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform
|
2021-04-22 01:15:47 +00:00
|
|
|
, libiconv, Security
|
2019-05-01 21:30:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "amber";
|
2021-04-10 04:16:27 +00:00
|
|
|
version = "0.5.9";
|
2019-05-01 21:30:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dalance";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-10 04:16:27 +00:00
|
|
|
sha256 = "sha256-mmgJCD7kJjvpxyagsoe5CSzqIEZcIiYMAMP3axRphv4=";
|
2019-05-01 21:30:13 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 04:16:27 +00:00
|
|
|
cargoSha256 = "sha256-opRinhTmhZxpAwHNiVOLXL8boQf09Y1NXrWQ6HWQYQ0=";
|
2019-05-01 21:30:13 +00:00
|
|
|
|
2021-04-22 01:15:47 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2019-05-01 21:30:13 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-01 21:30:13 +00:00
|
|
|
description = "A code search-and-replace tool";
|
2020-04-11 18:21:27 +00:00
|
|
|
homepage = "https://github.com/dalance/amber";
|
2019-05-01 21:30:13 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.bdesham ];
|
|
|
|
};
|
|
|
|
}
|