Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, rustPlatform 4}: 5 6rustPlatform.buildRustPackage rec { 7 pname = "sad"; 8 version = "0.4.22"; 9 10 src = fetchFromGitHub { 11 owner = "ms-jpq"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-v1fXEC+bV561cewH17x+1anhfXstGBOHG5rHvhYIvLo="; 15 }; 16 17 cargoSha256 = "sha256-krQTa9R3hmMVKLoBgnbCw+aSQu9HUXfA3XflB8AZv6w="; 18 19 # fix for compilation on aarch64 20 # see https://github.com/NixOS/nixpkgs/issues/145726 21 prePatch = '' 22 rm .cargo/config.toml 23 ''; 24 25 meta = with lib; { 26 description = "CLI tool to search and replace"; 27 homepage = "https://github.com/ms-jpq/sad"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ fab ]; 30 }; 31}