17 rustPlatform.buildRustPackage {
18 inherit pname version;
20 src = fetchFromGitHub {
24 hash = "sha256-MB78QsJA90Au0bCUXfkcjnvfPagTPZwFhFVqxix+Clw=";
27 cargoHash = "sha256-F4nabUeQZMnmSNC8KlHjx3IcyR2Xn36kovabmJ6g1zo=";
29 nativeBuildInputs = [ pkg-config ];
31 # 0.5.6 release has failing tests
35 lib.optionals stdenv.hostPlatform.isDarwin [
39 ++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
42 updateScript = nix-update-script { };
46 description = "Git prepare-commit-msg hook for authoring commit messages with GPT-3.";
47 mainProgram = "gptcommit";
48 homepage = "https://github.com/zurawiki/gptcommit";
49 license = with licenses; [ asl20 ];
50 maintainers = with maintainers; [ happysalada ];
51 platforms = with platforms; all;