1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 rustPlatform,
6 libiconv,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "fastmod";
11 version = "0.4.4";
12
13 src = fetchFromGitHub {
14 owner = "facebookincubator";
15 repo = "fastmod";
16 rev = "v${version}";
17 sha256 = "sha256-A/3vzfwaStoQ9gdNM8yjmL2J/pQjj6yb68WThiTF+1E=";
18 };
19
20 cargoHash = "sha256-GpV7F0TQyIRowY8LqLTVuwJcRYyyu055+g7BmxT4TMQ=";
21
22 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
23 libiconv
24 ];
25
26 meta = with lib; {
27 description = "Utility that makes sweeping changes to large, shared code bases";
28 mainProgram = "fastmod";
29 homepage = "https://github.com/facebookincubator/fastmod";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ jduan ];
32 };
33}