{ lib, rustPlatform, fetchFromGitHub }: rustPlatform.buildRustPackage rec { pname = "glitter"; version = "1.5.10"; src = fetchFromGitHub { owner = "milo123459"; repo = pname; rev = "v${version}"; sha256 = "sha256-4d1zMCQ4rYU5kL7Qhwibt6+IfKHUjYndHHeX7JT9zwU="; }; cargoSha256 = "sha256-eaSQGbsvAas7CLMtgSNWCqdrYU5Kc/0GY10rkNK05Uo="; # 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 = with lib; { description = "A git wrapper that allows you to compress multiple commands into one"; homepage = "https://github.com/milo123459/glitter"; license = licenses.mit; maintainers = with maintainers; [ figsoda ]; }; }