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

28 lines
685 B
Nix
Raw Normal View History

2019-05-01 23:30:13 +02:00
{ stdenv, fetchFromGitHub, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "amber";
2020-04-11 20:21:27 +02:00
version = "0.5.4";
2019-05-01 23:30:13 +02:00
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
2020-04-11 20:21:27 +02:00
sha256 = "0pqz3spb5lmrj7w8hynmah9nrcfjsb1s0bmrr0cng9a9jx8amwzn";
2019-05-01 23:30:13 +02:00
};
2020-04-11 20:21:27 +02:00
cargoSha256 = "1ps70swh96xbfn4hng5krlmwvw2bwrl2liqvx9v9vy6pr86643s6";
2019-05-01 23:30:13 +02:00
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
meta = with stdenv.lib; {
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 ];
platforms = platforms.all;
};
}