diff options
author | happysalada <raphael@megzari.com> | 2023-02-18 22:54:22 -0500 |
---|---|---|
committer | Yt <happysalada@proton.me> | 2023-02-18 23:23:37 -0500 |
commit | b4716ea17953b3e32ca431e79f752f9f02f08901 (patch) | |
tree | 56b771a06b0f20e80fd5b77b0e62fc3e2de7d7e6 /pkgs/development/tools/gptcommit | |
parent | a3c24f953573af4e6964f2f0099a34a9dc4ba236 (diff) | |
download | nixlib-b4716ea17953b3e32ca431e79f752f9f02f08901.tar nixlib-b4716ea17953b3e32ca431e79f752f9f02f08901.tar.gz nixlib-b4716ea17953b3e32ca431e79f752f9f02f08901.tar.bz2 nixlib-b4716ea17953b3e32ca431e79f752f9f02f08901.tar.lz nixlib-b4716ea17953b3e32ca431e79f752f9f02f08901.tar.xz nixlib-b4716ea17953b3e32ca431e79f752f9f02f08901.tar.zst nixlib-b4716ea17953b3e32ca431e79f752f9f02f08901.zip |
gptcommit: init at 0.1.15
Diffstat (limited to 'pkgs/development/tools/gptcommit')
-rw-r--r-- | pkgs/development/tools/gptcommit/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/tools/gptcommit/default.nix b/pkgs/development/tools/gptcommit/default.nix new file mode 100644 index 000000000000..1485b8165649 --- /dev/null +++ b/pkgs/development/tools/gptcommit/default.nix @@ -0,0 +1,43 @@ +{ stdenv +, lib +, fetchFromGitHub +, rustPlatform +, pkg-config +, nix-update-script +, Security +, openssl +}: + +let + pname = "gptcommit"; + version = "0.1.15"; +in +rustPlatform.buildRustPackage { + inherit pname version; + + src = fetchFromGitHub { + owner = "zurawiki"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-ykcKvJJg+K2mDiz7hDYzoL1CYI1zOidlqz4xLUY1NW0="; + }; + + cargoSha256 = "sha256-/BASGNwfdAHLKdceRQe4GNfLy6uanHwH0yohGO7V60Q="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = lib.optionals stdenv.isDarwin [ Security ] ++ lib.optionals stdenv.isLinux [ openssl ]; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = with lib; { + description = "A git prepare-commit-msg hook for authoring commit messages with GPT-3. "; + homepage = "https://github.com/zurawiki/gptcommit"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ happysalada ]; + platforms = with platforms; all; + }; +} + |