3
0
Fork 0
forked from mirrors/nixpkgs

git-mit: init at 5.12.146

Add a new package [git-mit](https://github.com/PurpleBooth/git-mit)

resolves #231710

Signed-off-by: Jalil David Salamé Messina <jalil.salame@gmail.com>
This commit is contained in:
Jalil David Salamé Messina 2023-05-13 20:35:00 +02:00 committed by Anderson Torres
parent 641a768829
commit 8df7cadadc
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, openssl
, libgit2
, libssh2
, zlib
, pkg-config
}:
let
version = "5.12.146";
in
rustPlatform.buildRustPackage {
pname = "git-mit";
inherit version;
src = fetchFromGitHub {
owner = "PurpleBooth";
repo = "git-mit";
rev = "v${version}";
hash = "sha256-VN1TbK9wi5Nt2K3yKx2lYSP30zSpwNETQ4OyHj8zxBg=";
};
cargoHash = "sha256-YtUuRLjmehG+5kUiCo4LK0PkKAckr28UahlrAjm9MYw=";
doCheck = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl libgit2 libssh2 zlib ];
meta = {
description = "Minimalist set of hooks to aid pairing and link commits to issues";
homepage = "https://github.com/PurpleBooth/git-mit";
license = lib.licenses.cc0;
};
}

View file

@ -1963,6 +1963,8 @@ with pkgs;
git-lfs = lowPrio (callPackage ../applications/version-management/git-lfs { });
git-mit = callPackage ../applications/version-management/git-mit { };
git-my = callPackage ../applications/version-management/git-my { };
git-machete = python3Packages.callPackage ../applications/version-management/git-machete { };