nixpkgs/pkgs/tools/text/amber/default.nix

27 lines
667 B
Nix
Raw Normal View History

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