nixpkgs/pkgs/applications/version-management/git-mit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
995 B
Nix
Raw Normal View History

{ lib
, rustPlatform
2023-05-17 18:45:04 +02:00
, fetchFromGitHub
, pkg-config
2024-02-11 23:34:12 +01:00
, libgit2
, openssl
, zlib
2023-05-17 18:45:04 +02:00
, stdenv
, darwin
}:
let
2024-09-03 08:45:07 +02:00
version = "5.13.29";
in
rustPlatform.buildRustPackage {
pname = "git-mit";
inherit version;
src = fetchFromGitHub {
owner = "PurpleBooth";
repo = "git-mit";
rev = "v${version}";
2024-09-03 08:45:07 +02:00
hash = "sha256-8XUpUpsd2q/1N28ZAPt7rW0pJu0WzE6oVSOwdJxhSBk=";
};
2024-09-03 08:45:07 +02:00
cargoHash = "sha256-KtdbYzXHpdg0Rf4ENrWpP0+vG3+HlLVi7MLeXp9HoVw=";
nativeBuildInputs = [ pkg-config ];
2023-05-17 18:45:04 +02:00
buildInputs = [
2024-02-11 23:34:12 +01:00
libgit2
2023-05-17 18:45:04 +02:00
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
];
2024-02-11 23:34:12 +01:00
env = {
LIBGIT2_NO_VENDOR = 1;
};
2023-05-17 18:45:04 +02:00
meta = with lib; {
description = "Minimalist set of hooks to aid pairing and link commits to issues";
homepage = "https://github.com/PurpleBooth/git-mit";
2023-05-17 18:45:04 +02:00
changelog = "https://github.com/PurpleBooth/git-mit/releases/tag/v${version}";
license = licenses.cc0;
maintainers = with maintainers; [ figsoda ];
};
}