nixpkgs/pkgs/applications/version-management/glitter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
839 B
Nix
Raw Normal View History

2021-09-21 20:28:11 +00:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "glitter";
2022-09-05 17:45:59 +00:00
version = "1.6.3";
2021-09-21 20:28:11 +00:00
src = fetchFromGitHub {
owner = "milo123459";
repo = pname;
rev = "v${version}";
2022-09-05 17:45:59 +00:00
sha256 = "sha256-xrQqeRJfBEcjX0tkULg+94R7+mWWn6QeKIfZiDp+Vt8=";
2021-09-21 20:28:11 +00:00
};
2022-09-05 17:45:59 +00:00
cargoSha256 = "sha256-GQ7Bns+FPj4jl2dBXnMrmcKIYcZTLZc1WvaHgKGj/gU=";
2021-09-21 20:28:11 +00:00
# tests require it to be in a git repository
preCheck = ''
git init
'';
2021-11-12 00:05:57 +00:00
# error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context
checkFlags = [ "--skip" "runs_correctly" ];
2021-09-21 20:28:11 +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 ];
};
}