2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2019-11-07 10:36:04 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ruplacer";
|
2024-03-08 17:16:09 +00:00
|
|
|
version = "0.8.3";
|
2019-11-07 10:36:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TankerHQ";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-03-08 17:16:09 +00:00
|
|
|
sha256 = "sha256-rndWKi/EDQzTWAw2deddhTXdmIfuEVM54MOfS4mNf+Y=";
|
2019-11-07 10:36:04 +00:00
|
|
|
};
|
|
|
|
|
2024-03-08 17:16:09 +00:00
|
|
|
cargoHash = "sha256-DkhmMdpUcka6Wkyz6hEfqB2gUpsGNziGv+23rVfwXN8=";
|
2019-11-07 10:36:04 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = (lib.optional stdenv.isDarwin Security);
|
2019-11-07 10:36:04 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-07 10:36:04 +00:00
|
|
|
description = "Find and replace text in source files";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "ruplacer";
|
2019-11-07 10:36:04 +00:00
|
|
|
homepage = "https://github.com/TankerHQ/ruplacer";
|
|
|
|
license = [ licenses.bsd3 ];
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2019-11-07 10:36:04 +00:00
|
|
|
};
|
|
|
|
}
|