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.

36 lines
964 B
Nix
Raw Normal View History

2023-01-14 17:40:42 +00:00
{ lib, rustPlatform, fetchFromGitHub, git }:
2021-09-21 20:28:11 +00:00
rustPlatform.buildRustPackage rec {
pname = "glitter";
version = "1.6.5";
2021-09-21 20:28:11 +00:00
src = fetchFromGitHub {
owner = "milo123459";
repo = pname;
rev = "v${version}";
sha256 = "sha256-sMAHVXpgAhZYUpl75JRtKhTqt/sQkSkoEzk7aGV1vcQ=";
2021-09-21 20:28:11 +00:00
};
cargoSha256 = "sha256-CaWpGNP7Jsv/3dks0LVbZXoD/9HqJmOzaD0ejT5xSqA=";
2021-09-21 20:28:11 +00:00
nativeCheckInputs = [
2023-01-14 17:40:42 +00:00
git
];
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";
2023-01-14 17:40:42 +00:00
changelog = "https://github.com/Milo123459/glitter/releases/tag/v${version}";
2021-09-21 20:28:11 +00:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}