3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/amber/default.nix

27 lines
654 B
Nix
Raw Normal View History

2019-05-01 22:30:13 +01:00
{ stdenv, fetchFromGitHub, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "amber";
2020-11-25 21:37:04 +00:00
version = "0.5.8";
2019-05-01 22:30:13 +01:00
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
2020-11-25 21:37:04 +00:00
sha256 = "0j9h9zzg6n4mhq2bqj71k5db595ilbgd9dn6ygmzsm74619q4454";
2019-05-01 22:30:13 +01:00
};
2020-11-25 21:37:04 +00:00
cargoSha256 = "0h47xqqq8f8m28rl1s6r305cf3dvk94aa86j6m0rk535i2jqfvhp";
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 ];
};
}