4cb23072fc
GitOrigin-RevId: 6d8215281b2f87a5af9ed7425a26ac575da0438f
30 lines
840 B
Nix
30 lines
840 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "glitter";
|
|
version = "1.5.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "milo123459";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-XQ3HLmT3sWjoHTxnOU9FSHbnCwitFH0tOOpT7WwTEPE=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-V54Itj7/zUO1bp0y30TjV1mSo/oNJOxEofpSqrYz6xk=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|