git-mit: fix build on darwin, adopt
This commit is contained in:
parent
4376e41af0
commit
954fb6b75b
|
@ -1,12 +1,12 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
|
||||||
, fetchFromGitHub
|
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, openssl
|
, fetchFromGitHub
|
||||||
, libgit2
|
|
||||||
, libssh2
|
|
||||||
, zlib
|
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, libgit2_1_5
|
||||||
|
, openssl
|
||||||
|
, zlib
|
||||||
|
, stdenv
|
||||||
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -25,15 +25,21 @@ rustPlatform.buildRustPackage {
|
||||||
|
|
||||||
cargoHash = "sha256-YtUuRLjmehG+5kUiCo4LK0PkKAckr28UahlrAjm9MYw=";
|
cargoHash = "sha256-YtUuRLjmehG+5kUiCo4LK0PkKAckr28UahlrAjm9MYw=";
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
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";
|
description = "Minimalist set of hooks to aid pairing and link commits to issues";
|
||||||
homepage = "https://github.com/PurpleBooth/git-mit";
|
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 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue