nixpkgs/pkgs/applications/version-management/git-mit/default.nix
2023-12-15 09:12:15 +00:00

46 lines
961 B
Nix

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