depot/third_party/nixpkgs/pkgs/applications/version-management/git-mit/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

45 lines
961 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2_1_5
, openssl
, zlib
, stdenv
, darwin
}:
let
version = "5.12.184";
in
rustPlatform.buildRustPackage {
pname = "git-mit";
inherit version;
src = fetchFromGitHub {
owner = "PurpleBooth";
repo = "git-mit";
rev = "v${version}";
hash = "sha256-KFfRfLOl6So9AnmrLiiG3sUG2OHQegb8Nx/ndcO1IjE=";
};
cargoHash = "sha256-17Ojhu7xPZYdFeV/rCa/K9HLHD/vsm0FU6Ag9EPngcQ=";
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 ];
};
}