2021-09-04 10:18:48 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sad";
|
2022-06-18 13:17:58 +02:00
|
|
|
version = "0.4.22";
|
2021-09-04 10:18:48 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ms-jpq";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-06-18 13:17:58 +02:00
|
|
|
sha256 = "sha256-v1fXEC+bV561cewH17x+1anhfXstGBOHG5rHvhYIvLo=";
|
2021-09-04 10:18:48 +02:00
|
|
|
};
|
|
|
|
|
2022-06-18 13:17:58 +02:00
|
|
|
cargoSha256 = "sha256-krQTa9R3hmMVKLoBgnbCw+aSQu9HUXfA3XflB8AZv6w=";
|
2021-09-04 10:18:48 +02:00
|
|
|
|
2023-01-08 14:59:29 +01:00
|
|
|
# fix for compilation on aarch64
|
|
|
|
# see https://github.com/NixOS/nixpkgs/issues/145726
|
|
|
|
prePatch = ''
|
|
|
|
rm .cargo/config.toml
|
|
|
|
'';
|
|
|
|
|
2021-09-04 10:18:48 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|