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
665 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";
2023-12-28 07:12:01 +00:00
version = "0.6.0";
2019-05-01 22:30:13 +01:00
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
2023-12-28 07:12:01 +00:00
sha256 = "sha256-q0o2PQngbDLumck27V0bIiB35zesn55Y+MwK2GjNVWo=";
2019-05-01 22:30:13 +01:00
};
2023-12-28 07:12:01 +00:00
cargoHash = "sha256-nBSgP30Izskq9RbhVIyqWzZgG5ZWHVdiukldw+Q0rco=";
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 ];
};
}