Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 fetchpatch, 6 pkg-config, 7 libgit2, 8 openssl, 9 zlib, 10}: 11 12let 13 version = "5.14.4"; 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-8XWwzR9TiSCU6fKbrulKpCDFDEyzQpaT2nrahF8iac8="; 24 }; 25 26 cargoPatches = [ 27 # https://github.com/PurpleBooth/git-mit/pull/1543 28 ./libgit2-update.patch 29 ]; 30 31 cargoHash = "sha256-B2XRdcwcFxMwnDl5ndIw72OEsn6D2Y8rIoeO4tclJkk="; 32 33 nativeBuildInputs = [ pkg-config ]; 34 35 buildInputs = [ 36 libgit2 37 openssl 38 zlib 39 ]; 40 41 env = { 42 LIBGIT2_NO_VENDOR = 1; 43 }; 44 45 meta = { 46 description = "Minimalist set of hooks to aid pairing and link commits to issues"; 47 homepage = "https://github.com/PurpleBooth/git-mit"; 48 changelog = "https://github.com/PurpleBooth/git-mit/releases/tag/v${version}"; 49 license = lib.licenses.cc0; 50 maintainers = with lib.maintainers; [ figsoda ]; 51 }; 52}