at 23.11-beta 45 lines 961 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, pkg-config 5, libgit2_1_5 6, openssl 7, zlib 8, stdenv 9, darwin 10}: 11 12let 13 version = "5.12.175"; 14in 15rustPlatform.buildRustPackage { 16 pname = "git-mit"; 17 inherit version; 18 19 src = fetchFromGitHub { 20 owner = "PurpleBooth"; 21 repo = "git-mit"; 22 rev = "v${version}"; 23 hash = "sha256-c026r3F/oNk/DyEwHb/1kSL99bqmYp7mqOdsWbB7Njo="; 24 }; 25 26 cargoHash = "sha256-QpmgGonDy3Pkx2i5X3ZxmBXqupOoESoFMIBorFeqam4="; 27 28 nativeBuildInputs = [ pkg-config ]; 29 30 buildInputs = [ 31 libgit2_1_5 32 openssl 33 zlib 34 ] ++ lib.optionals stdenv.isDarwin [ 35 darwin.apple_sdk.frameworks.AppKit 36 ]; 37 38 meta = with lib; { 39 description = "Minimalist set of hooks to aid pairing and link commits to issues"; 40 homepage = "https://github.com/PurpleBooth/git-mit"; 41 changelog = "https://github.com/PurpleBooth/git-mit/releases/tag/v${version}"; 42 license = licenses.cc0; 43 maintainers = with maintainers; [ figsoda ]; 44 }; 45}