49 lines
996 B
Nix
49 lines
996 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, libgit2
|
|
, openssl
|
|
, zlib
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
let
|
|
version = "5.12.191";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "git-mit";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PurpleBooth";
|
|
repo = "git-mit";
|
|
rev = "v${version}";
|
|
hash = "sha256-aSEoAs0s7zyALf3s77eVlrjkCrn7ihW/4OW5hN8YL8k=";
|
|
};
|
|
|
|
cargoHash = "sha256-pm+XreLGxZJKRcrmU1ooMjN7MTRJqgKOy2J1OqdodxE=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
libgit2
|
|
openssl
|
|
zlib
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
];
|
|
|
|
env = {
|
|
LIBGIT2_NO_VENDOR = 1;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Minimalist set of hooks to aid pairing and link commits to issues";
|
|
homepage = "https://github.com/PurpleBooth/git-mit";
|
|
changelog = "https://github.com/PurpleBooth/git-mit/releases/tag/v${version}";
|
|
license = licenses.cc0;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|