mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
81ff8e6456
Diff: https://github.com/milo123459/glitter/compare/v1.6.3...v1.6.5 Changelog: https://github.com/Milo123459/glitter/releases/tag/v1.6.5
36 lines
964 B
Nix
36 lines
964 B
Nix
{ lib, rustPlatform, fetchFromGitHub, git }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "glitter";
|
|
version = "1.6.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "milo123459";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-sMAHVXpgAhZYUpl75JRtKhTqt/sQkSkoEzk7aGV1vcQ=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-CaWpGNP7Jsv/3dks0LVbZXoD/9HqJmOzaD0ejT5xSqA=";
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
];
|
|
|
|
# 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";
|
|
changelog = "https://github.com/Milo123459/glitter/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|