2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-06-20 20:05:11 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2021-05-15 11:31:38 +00:00
|
|
|
, libiconv
|
2020-06-20 20:05:11 +00:00
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fastmod";
|
2022-08-11 11:39:38 +00:00
|
|
|
version = "0.4.3";
|
2020-06-20 20:05:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebookincubator";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-11 11:39:38 +00:00
|
|
|
sha256 = "sha256-j5+6ijJ04/Non7AUSN35OhfZ04MiPUDU4V1HLwZaM9k=";
|
2020-06-20 20:05:11 +00:00
|
|
|
};
|
|
|
|
|
2022-08-11 11:39:38 +00:00
|
|
|
cargoSha256 = "sha256-RNTnP3RKRZXo3+L54y/8nBunGbsxVY72sbl+ZrqfeMI=";
|
2020-06-20 20:05:11 +00:00
|
|
|
|
2021-05-15 11:31:38 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2020-06-20 20:05:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-20 20:05:11 +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 ];
|
|
|
|
};
|
|
|
|
}
|