depot/pkgs/tools/text/amber/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

26 lines
676 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform
, libiconv, Security
}:
rustPlatform.buildRustPackage rec {
pname = "amber";
version = "0.6.0";
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
sha256 = "sha256-q0o2PQngbDLumck27V0bIiB35zesn55Y+MwK2GjNVWo=";
};
cargoHash = "sha256-nBSgP30Izskq9RbhVIyqWzZgG5ZWHVdiukldw+Q0rco=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv Security ];
meta = with lib; {
description = "Code search-and-replace tool";
homepage = "https://github.com/dalance/amber";
license = with licenses; [ mit ];
maintainers = [ maintainers.bdesham ];
};
}