mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
543cd40ecc
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 | xargs -i nvim {}` and sorting the opened files by hand, avoiding generated packages list
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, pkg-config
|
|
, nix-update-script
|
|
, Security
|
|
, SystemConfiguration
|
|
, openssl
|
|
}:
|
|
|
|
let
|
|
pname = "gptcommit";
|
|
version = "0.5.16";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zurawiki";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-JhMkK2zw3VL9o7j8DJmjY/im+GyCjfV2TJI3GDo8T8c=";
|
|
};
|
|
|
|
cargoHash = "sha256-ye9MAfG3m24ofV95Kr+KTP4FEqfrsm3aTQ464hG9q08=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
# 0.5.6 release has failing tests
|
|
doCheck = false;
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]
|
|
++ lib.optionals stdenv.isLinux [ openssl ];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Git prepare-commit-msg hook for authoring commit messages with GPT-3.";
|
|
mainProgram = "gptcommit";
|
|
homepage = "https://github.com/zurawiki/gptcommit";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ happysalada ];
|
|
platforms = with platforms; all;
|
|
};
|
|
}
|
|
|