Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
929 B
Nix
38 lines
929 B
Nix
{
|
|
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";
|
|
};
|
|
}
|