1{ lib, stdenv, fetchFromGitHub, rustPlatform
2, libiconv, Security
3}:
4
5rustPlatform.buildRustPackage rec {
6 pname = "amber";
7 version = "0.5.9";
8
9 src = fetchFromGitHub {
10 owner = "dalance";
11 repo = pname;
12 rev = "v${version}";
13 sha256 = "sha256-mmgJCD7kJjvpxyagsoe5CSzqIEZcIiYMAMP3axRphv4=";
14 };
15
16 cargoSha256 = "sha256-opRinhTmhZxpAwHNiVOLXL8boQf09Y1NXrWQ6HWQYQ0=";
17
18 buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
19
20 meta = with lib; {
21 description = "A code search-and-replace tool";
22 homepage = "https://github.com/dalance/amber";
23 license = with licenses; [ mit ];
24 maintainers = [ maintainers.bdesham ];
25 };
26}