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

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

32 lines
696 B
Nix
Raw Normal View History

2021-09-04 08:18:48 +00:00
{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "sad";
2022-06-18 11:17:58 +00:00
version = "0.4.22";
2021-09-04 08:18:48 +00:00
src = fetchFromGitHub {
owner = "ms-jpq";
repo = pname;
rev = "v${version}";
2022-06-18 11:17:58 +00:00
sha256 = "sha256-v1fXEC+bV561cewH17x+1anhfXstGBOHG5rHvhYIvLo=";
2021-09-04 08:18:48 +00:00
};
2022-06-18 11:17:58 +00:00
cargoSha256 = "sha256-krQTa9R3hmMVKLoBgnbCw+aSQu9HUXfA3XflB8AZv6w=";
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 ];
};
}