3
0
Fork 0
forked from mirrors/nixpkgs
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 22:30:13 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "amber";
2021-04-10 05:16:27 +01:00
version = "0.5.9";
2019-05-01 22:30:13 +01:00
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
2021-04-10 05:16:27 +01:00
sha256 = "sha256-mmgJCD7kJjvpxyagsoe5CSzqIEZcIiYMAMP3axRphv4=";
2019-05-01 22:30:13 +01:00
};
2021-04-10 05:16:27 +01:00
cargoSha256 = "sha256-opRinhTmhZxpAwHNiVOLXL8boQf09Y1NXrWQ6HWQYQ0=";
2019-05-01 22:30:13 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
2019-05-01 22:30:13 +01:00
meta = with lib; {
2019-05-01 22:30:13 +01:00
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 ];
};
}