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";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "0.4.2";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebookincubator";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "sha256-Lv8hARD/aVWiWpJQmPWPeACpX15+3NogoUl5yh63E7A=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
cargoSha256 = "sha256-L1MKoVacVKcpEG2IfS+eENxFZNiSaTDTxfFbFlvzYl8=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|