at 24.11-pre 49 lines 996 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, pkg-config 5, libgit2 6, openssl 7, zlib 8, stdenv 9, darwin 10}: 11 12let 13 version = "5.12.201"; 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-nOzyC389bAnhTzDnBviqx7fzkJxj6Rf3FW9ysRs+rWI="; 24 }; 25 26 cargoHash = "sha256-wA68UDFkgvDGOX3t3d7ZyOy4z3qx4vSvup2mRjRM9rY="; 27 28 nativeBuildInputs = [ pkg-config ]; 29 30 buildInputs = [ 31 libgit2 32 openssl 33 zlib 34 ] ++ lib.optionals stdenv.isDarwin [ 35 darwin.apple_sdk.frameworks.AppKit 36 ]; 37 38 env = { 39 LIBGIT2_NO_VENDOR = 1; 40 }; 41 42 meta = with lib; { 43 description = "Minimalist set of hooks to aid pairing and link commits to issues"; 44 homepage = "https://github.com/PurpleBooth/git-mit"; 45 changelog = "https://github.com/PurpleBooth/git-mit/releases/tag/v${version}"; 46 license = licenses.cc0; 47 maintainers = with maintainers; [ figsoda ]; 48 }; 49}