Merge pull request #210736 from figsoda/glitter

This commit is contained in:
Artturi 2023-01-14 21:26:15 +02:00 committed by GitHub
commit 12137f8bab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib, rustPlatform, fetchFromGitHub, git }:
rustPlatform.buildRustPackage rec {
pname = "glitter";
@ -13,6 +13,10 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-GQ7Bns+FPj4jl2dBXnMrmcKIYcZTLZc1WvaHgKGj/gU=";
checkInputs = [
git
];
# tests require it to be in a git repository
preCheck = ''
git init
@ -24,6 +28,7 @@ rustPlatform.buildRustPackage rec {
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 ];
};