depot/third_party/nixpkgs/pkgs/applications/version-management/git-mit/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

49 lines
996 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2
, openssl
, zlib
, stdenv
, darwin
}:
let
version = "5.12.186";
in
rustPlatform.buildRustPackage {
pname = "git-mit";
inherit version;
src = fetchFromGitHub {
owner = "PurpleBooth";
repo = "git-mit";
rev = "v${version}";
hash = "sha256-895QAtKUzqiWffw5IgovXBiARncelrmz1FUEbeHYoW0=";
};
cargoHash = "sha256-E3xwZ9oB7oe5gVLAasvo1MWPjDPLKZgSX98VZAq2O3k=";
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 ];
};
}