13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
30 lines
839 B
Nix
30 lines
839 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "glitter";
|
|
version = "1.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "milo123459";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-1iBTuFhxgsOFO3GueIB0kqNfmLglzircnCY+AffFj9I=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-wY60B+3ndKL6IAaLmvbIcCxvq/Un/Sgzgedml6ouqFc=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|