depot/third_party/nixpkgs/pkgs/tools/text/sad/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

34 lines
738 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, python3
}:
rustPlatform.buildRustPackage rec {
pname = "sad";
version = "0.4.23";
src = fetchFromGitHub {
owner = "ms-jpq";
repo = pname;
rev = "v${version}";
hash = "sha256-LNMc+3pXx7VyNq0dws+s13ZA3+f8aJzgbAxzI71NKx0=";
};
cargoHash = "sha256-UjXJmH4UI5Vey2rBy57CI1r13bpGYhIozEoOoyoRDLQ=";
nativeBuildInputs = [ python3 ];
# fix for compilation on aarch64
# see https://github.com/NixOS/nixpkgs/issues/145726
prePatch = ''
rm .cargo/config.toml
'';
meta = with lib; {
description = "CLI tool to search and replace";
homepage = "https://github.com/ms-jpq/sad";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}