nixpkgs/pkgs/tools/text/sad/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
738 B
Nix
Raw Normal View History

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