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

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

49 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
2023-10-17 06:09:12 +00:00
, SystemConfiguration
2023-02-19 03:54:22 +00:00
, openssl
}:
let
pname = "gptcommit";
2023-10-17 06:09:12 +00:00
version = "0.5.14";
2023-02-19 03:54:22 +00:00
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "zurawiki";
repo = pname;
rev = "v${version}";
2023-10-17 06:09:12 +00:00
hash = "sha256-xjaFr1y2Fd7IWbJlegnIsfS5/oMJYd6QTnwp7IK17xM=";
2023-02-19 03:54:22 +00:00
};
2023-10-17 06:09:12 +00:00
cargoHash = "sha256-VZrlEJi/UPQTGFiSpZs+Do+69CY3zdqGkAnUxMYvvaw=";
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-10-17 06:09:12 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]
++ lib.optionals stdenv.isLinux [ openssl ];
2023-02-19 03:54:22 +00:00
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;
};
}