nixpkgs/pkgs/development/tools/gptcommit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.0 KiB
Nix
Raw Normal View History

2023-02-19 03:54:22 +00:00
{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, nix-update-script
, Security
, openssl
}:
let
pname = "gptcommit";
2023-04-30 23:52:48 +00:00
version = "0.5.8";
2023-02-19 03:54:22 +00:00
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "zurawiki";
repo = pname;
rev = "v${version}";
2023-04-30 23:52:48 +00:00
sha256 = "sha256-K4A0np8+gpFpSU4jBv6PAw4RyUWmIB7dTgWvpy36CYY=";
2023-02-19 03:54:22 +00:00
};
2023-04-30 23:52:48 +00:00
cargoSha256 = "sha256-awztElsrJCUGUn2HcGpCkxUO/nEy8iZO22/fQtwAKdg=";
2023-02-19 03:54:22 +00:00
nativeBuildInputs = [ pkg-config ];
2023-04-04 11:43:28 +00:00
# 0.5.6 release has failing tests
doCheck = false;
2023-02-19 03:54:22 +00:00
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;
};
}