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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
667 B
Nix
Raw Normal View History

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