2019-05-01 22:30:13 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "amber";
|
2020-11-10 21:11:39 +00:00
|
|
|
version = "0.5.5";
|
2019-05-01 22:30:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dalance";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-10 21:11:39 +00:00
|
|
|
sha256 = "083gpssnhjxp1gr5rn27k9j4pm42wqz76llrn5yh91rwcwvlg1l8";
|
2019-05-01 22:30:13 +01:00
|
|
|
};
|
|
|
|
|
2020-11-10 21:11:39 +00:00
|
|
|
cargoSha256 = "199wfc98vq6vgrz8xqqh8lz4j3ig7w66mrk1am9x0viyhj92fvx0";
|
2019-05-01 22:30:13 +01:00
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A code search-and-replace tool";
|
2020-04-11 19:21:27 +01:00
|
|
|
homepage = "https://github.com/dalance/amber";
|
2019-05-01 22:30:13 +01:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.bdesham ];
|
|
|
|
};
|
|
|
|
}
|