mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
179964f9e0
Diff: https://github.com/PurpleBooth/git-mit/compare/v5.12.146...v5.12.147 Changelog: https://github.com/PurpleBooth/git-mit/releases/tag/v5.12.147
46 lines
961 B
Nix
46 lines
961 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, libgit2_1_5
|
|
, openssl
|
|
, zlib
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
let
|
|
version = "5.12.147";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "git-mit";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PurpleBooth";
|
|
repo = "git-mit";
|
|
rev = "v${version}";
|
|
hash = "sha256-TaYuxyezegPZPWlkYcZk+YhmHqQ/P1nO5D5JC3LN8bo=";
|
|
};
|
|
|
|
cargoHash = "sha256-9oqw2rIAhdo5G2GsW7rwHMymgFASKE7OrVqO2ewfG2g=";
|
|
|
|
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 ];
|
|
};
|
|
}
|