16 rustPlatform.buildRustPackage {
17 inherit pname version;
19 src = fetchFromGitHub {
23 hash = "sha256-MB78QsJA90Au0bCUXfkcjnvfPagTPZwFhFVqxix+Clw=";
26 cargoHash = "sha256-F4nabUeQZMnmSNC8KlHjx3IcyR2Xn36kovabmJ6g1zo=";
28 nativeBuildInputs = [ pkg-config ];
30 # 0.5.6 release has failing tests
33 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ]
34 ++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
37 updateScript = nix-update-script { };
41 description = "Git prepare-commit-msg hook for authoring commit messages with GPT-3.";
42 mainProgram = "gptcommit";
43 homepage = "https://github.com/zurawiki/gptcommit";
44 license = with licenses; [ asl20 ];
45 maintainers = with maintainers; [ happysalada ];
46 platforms = with platforms; all;