16 rustPlatform.buildRustPackage {
17 inherit pname version;
19 src = fetchFromGitHub {
23 hash = "sha256-JhMkK2zw3VL9o7j8DJmjY/im+GyCjfV2TJI3GDo8T8c=";
26 cargoHash = "sha256-ye9MAfG3m24ofV95Kr+KTP4FEqfrsm3aTQ464hG9q08=";
28 nativeBuildInputs = [ pkg-config ];
30 # 0.5.6 release has failing tests
33 buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]
34 ++ lib.optionals stdenv.isLinux [ openssl ];
37 updateScript = nix-update-script { };
41 description = "A 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;