2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-06-15 15:56:04 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2021-05-20 23:08:51 +00:00
|
|
|
, libiconv
|
2020-06-15 15:56:04 +00:00
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fastmod";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.4.3";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebookincubator";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-j5+6ijJ04/Non7AUSN35OhfZ04MiPUDU4V1HLwZaM9k=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-RNTnP3RKRZXo3+L54y/8nBunGbsxVY72sbl+ZrqfeMI=";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-15 15:56:04 +00:00
|
|
|
description = "A utility that makes sweeping changes to large, shared code bases";
|
|
|
|
homepage = "https://github.com/facebookincubator/fastmod";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jduan ];
|
|
|
|
};
|
|
|
|
}
|