2025-07-26 11:39:35 +02:00

45 lines
1022 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
gitMinimal,
}:
rustPlatform.buildRustPackage rec {
pname = "glitter";
version = "1.6.6";
src = fetchFromGitHub {
owner = "milo123459";
repo = "glitter";
rev = "v${version}";
hash = "sha256-dImQLC7owPf2EB5COO5vjN3a6k7gJ88D2hMSUW2/wn4=";
};
cargoHash = "sha256-gHwweWKRnRJRfVMxnIFkafbN9Sl+UTnnYRQF7QD3nCc=";
nativeCheckInputs = [
gitMinimal
];
# tests require it to be in a git repository
preCheck = ''
git init
'';
# error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context
checkFlags = [
"--skip"
"runs_correctly"
];
meta = {
description = "Git wrapper that allows you to compress multiple commands into one";
homepage = "https://github.com/milo123459/glitter";
changelog = "https://github.com/Milo123459/glitter/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "glitter";
};
}