b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
45 lines
961 B
Nix
45 lines
961 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, libgit2_1_5
|
|
, openssl
|
|
, zlib
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
let
|
|
version = "5.12.161";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "git-mit";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PurpleBooth";
|
|
repo = "git-mit";
|
|
rev = "v${version}";
|
|
hash = "sha256-r0gRBOf/CC4HDh/N4Qi1/3DkPuuNlqfbvl4o5JqobKE=";
|
|
};
|
|
|
|
cargoHash = "sha256-LgiO/wPoPjmxymcXl9zQ8n/xOnFfpravwpqEsUctxxw=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
libgit2_1_5
|
|
openssl
|
|
zlib
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|