From 954fb6b75b785cbd209092dce5d3bdfc534a0536 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 17 May 2023 12:45:04 -0400 Subject: [PATCH] git-mit: fix build on darwin, adopt --- .../version-management/git-mit/default.nix | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/version-management/git-mit/default.nix b/pkgs/applications/version-management/git-mit/default.nix index 513045436ed..4c96bc13b44 100644 --- a/pkgs/applications/version-management/git-mit/default.nix +++ b/pkgs/applications/version-management/git-mit/default.nix @@ -1,12 +1,12 @@ { lib -, stdenv -, fetchFromGitHub , rustPlatform -, openssl -, libgit2 -, libssh2 -, zlib +, fetchFromGitHub , pkg-config +, libgit2_1_5 +, openssl +, zlib +, stdenv +, darwin }: let @@ -25,15 +25,21 @@ rustPlatform.buildRustPackage { cargoHash = "sha256-YtUuRLjmehG+5kUiCo4LK0PkKAckr28UahlrAjm9MYw="; - doCheck = true; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl libgit2 libssh2 zlib ]; + buildInputs = [ + libgit2_1_5 + openssl + zlib + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.AppKit + ]; - meta = { + meta = with lib; { description = "Minimalist set of hooks to aid pairing and link commits to issues"; homepage = "https://github.com/PurpleBooth/git-mit"; - license = lib.licenses.cc0; + changelog = "https://github.com/PurpleBooth/git-mit/releases/tag/v${version}"; + license = licenses.cc0; + maintainers = with maintainers; [ figsoda ]; }; }