2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-06-20 20:05:11 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fastmod";
|
2021-04-25 22:27:10 +00:00
|
|
|
version = "0.4.2";
|
2020-06-20 20:05:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebookincubator";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-25 22:27:10 +00:00
|
|
|
sha256 = "sha256-Lv8hARD/aVWiWpJQmPWPeACpX15+3NogoUl5yh63E7A=";
|
2020-06-20 20:05:11 +00:00
|
|
|
};
|
|
|
|
|
2021-04-25 22:27:10 +00:00
|
|
|
cargoSha256 = "sha256-L1MKoVacVKcpEG2IfS+eENxFZNiSaTDTxfFbFlvzYl8=";
|
2020-06-20 20:05:11 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin 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 ];
|
|
|
|
};
|
|
|
|
}
|