{ lib, rustPlatform, fetchFromGitHub, }: rustPlatform.buildRustPackage rec { pname = "scooter"; version = "0.8.0"; src = fetchFromGitHub { owner = "thomasschafer"; repo = "scooter"; rev = "v${version}"; hash = "sha256-JADZR1imtl2vPq+n1Ese565qZ1S0J4tuGCx+N2VTlLs="; }; cargoHash = "sha256-5FmKKfR7m9++ft8tUGtQnDQydfbMBAHi6i5XANG1duQ="; # Ensure that only the `scooter` package is built (excluding `xtask`) cargoBuildFlags = [ "--package" "scooter" ]; # Many tests require filesystem writes which fail in Nix sandbox doCheck = false; meta = { description = "Interactive find and replace in the terminal"; homepage = "https://github.com/thomasschafer/scooter"; changelog = "https://github.com/thomasschafer/scooter/commits/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ felixzieger ]; mainProgram = "scooter"; }; }