2023-01-20 10:41:00 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, git }:
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "glitter";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.6.6";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "milo123459";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-dImQLC7owPf2EB5COO5vjN3a6k7gJ88D2hMSUW2/wn4=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-7JQcY3HCG3UQ0Mfz/+ZZ0axGEpQoH410FT72tjHW7EE=";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
git
|
|
|
|
];
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
# tests require it to be in a git repository
|
|
|
|
preCheck = ''
|
|
|
|
git init
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context
|
|
|
|
checkFlags = [ "--skip" "runs_correctly" ];
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Git wrapper that allows you to compress multiple commands into one";
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/milo123459/glitter";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/Milo123459/glitter/releases/tag/v${version}";
|
2021-09-22 15:38:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "glitter";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
}
|