mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
c3f872778c
Diff: https://github.com/ms-jpq/sad/compare/refs/tags/v0.4.25...v0.4.27 Changelog: https://github.com/ms-jpq/sad/releases/tag/v0.4.27
37 lines
847 B
Nix
37 lines
847 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, python3
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sad";
|
|
version = "0.4.27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ms-jpq";
|
|
repo = "sad";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-hb09YwF59I8zQ6dIrGkCWJ98VeB5EYoNloTGg5v2BIs=";
|
|
};
|
|
|
|
cargoHash = "sha256-wFmC19uGEaS8Rn+bKdljAZY24/AL9VDV183xXBjt79M=";
|
|
|
|
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";
|
|
changelog = "https://github.com/ms-jpq/sad/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "sad";
|
|
};
|
|
}
|