2023-05-13 20:35:00 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-05-17 18:45:04 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2024-02-11 23:34:12 +01:00
|
|
|
, libgit2
|
2023-05-13 20:35:00 +02:00
|
|
|
, openssl
|
|
|
|
, zlib
|
2023-05-17 18:45:04 +02:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
2023-05-13 20:35:00 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2024-09-03 08:45:07 +02:00
|
|
|
version = "5.13.29";
|
2023-05-13 20:35:00 +02:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "git-mit";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PurpleBooth";
|
|
|
|
repo = "git-mit";
|
|
|
|
rev = "v${version}";
|
2024-09-03 08:45:07 +02:00
|
|
|
hash = "sha256-8XUpUpsd2q/1N28ZAPt7rW0pJu0WzE6oVSOwdJxhSBk=";
|
2023-05-13 20:35:00 +02:00
|
|
|
};
|
|
|
|
|
2024-09-03 08:45:07 +02:00
|
|
|
cargoHash = "sha256-KtdbYzXHpdg0Rf4ENrWpP0+vG3+HlLVi7MLeXp9HoVw=";
|
2023-05-13 20:35:00 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2023-05-17 18:45:04 +02:00
|
|
|
buildInputs = [
|
2024-02-11 23:34:12 +01:00
|
|
|
libgit2
|
2023-05-17 18:45:04 +02:00
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
|
|
];
|
2023-05-13 20:35:00 +02:00
|
|
|
|
2024-02-11 23:34:12 +01:00
|
|
|
env = {
|
|
|
|
LIBGIT2_NO_VENDOR = 1;
|
|
|
|
};
|
|
|
|
|
2023-05-17 18:45:04 +02:00
|
|
|
meta = with lib; {
|
2023-05-13 20:35:00 +02:00
|
|
|
description = "Minimalist set of hooks to aid pairing and link commits to issues";
|
|
|
|
homepage = "https://github.com/PurpleBooth/git-mit";
|
2023-05-17 18:45:04 +02:00
|
|
|
changelog = "https://github.com/PurpleBooth/git-mit/releases/tag/v${version}";
|
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2023-05-13 20:35:00 +02:00
|
|
|
};
|
|
|
|
}
|