Loading pkgs/by-name/ge/geminicommit/package.nix 0 → 100644 +49 −0 Original line number Diff line number Diff line { lib, buildGoModule, fetchFromGitHub, installShellFiles, stdenv, }: buildGoModule (finalAttrs: { pname = "geminicommit"; version = "0.2.7"; src = fetchFromGitHub { owner = "tfkhdyt"; repo = "geminicommit"; tag = "v${finalAttrs.version}"; hash = "sha256-dWJzS9vfEEvfPA5IS5WZDwoNMaXXNuVIb3p2xZvSbbQ="; }; vendorHash = "sha256-+eKJLXgKuUHelUjD8MpMa+cRP+clmYK+1olcb/jmabk="; nativeBuildInputs = [ installShellFiles ]; postInstall = let cmd = finalAttrs.meta.mainProgram; in lib.optionalString (with stdenv; buildPlatform.canExecute hostPlatform) '' # `geminicommit` requires write permissions to $HOME for its `config.toml` # ... which is automatically initiated on startup export HOME=$(mktemp -d) for shell in bash zsh fish; do installShellCompletion \ --cmd "${cmd}" \ --"$shell" <($out/bin/"${cmd}" completion "$shell") done ''; meta = { description = "CLI that generates git commit messages with Google Gemini AI"; homepage = "https://github.com/tfkhdyt/geminicommit"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ bryango ]; mainProgram = "geminicommit"; }; }) Loading
pkgs/by-name/ge/geminicommit/package.nix 0 → 100644 +49 −0 Original line number Diff line number Diff line { lib, buildGoModule, fetchFromGitHub, installShellFiles, stdenv, }: buildGoModule (finalAttrs: { pname = "geminicommit"; version = "0.2.7"; src = fetchFromGitHub { owner = "tfkhdyt"; repo = "geminicommit"; tag = "v${finalAttrs.version}"; hash = "sha256-dWJzS9vfEEvfPA5IS5WZDwoNMaXXNuVIb3p2xZvSbbQ="; }; vendorHash = "sha256-+eKJLXgKuUHelUjD8MpMa+cRP+clmYK+1olcb/jmabk="; nativeBuildInputs = [ installShellFiles ]; postInstall = let cmd = finalAttrs.meta.mainProgram; in lib.optionalString (with stdenv; buildPlatform.canExecute hostPlatform) '' # `geminicommit` requires write permissions to $HOME for its `config.toml` # ... which is automatically initiated on startup export HOME=$(mktemp -d) for shell in bash zsh fish; do installShellCompletion \ --cmd "${cmd}" \ --"$shell" <($out/bin/"${cmd}" completion "$shell") done ''; meta = { description = "CLI that generates git commit messages with Google Gemini AI"; homepage = "https://github.com/tfkhdyt/geminicommit"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ bryango ]; mainProgram = "geminicommit"; }; })