2021-09-22 15:38:15 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "glitter";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.5.11";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "milo123459";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-WAQ4DwPKkATLa52GE5LZRVY0YH4nRStjPuQg7kdXRjw=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
cargoSha256 = "sha256-UK3gUAs+FalqboK7MuhE9kOc/Smu/EAN0BYbgg4PWns=";
|
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; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|