From 7f5639fa3b68054ca0b062866dc62b22c3f11505 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 23 Feb 2023 14:39:01 +0100 Subject: [PATCH] shell-genie: init at unstable-2023-01-27 --- .../applications/misc/shell-genie/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/applications/misc/shell-genie/default.nix diff --git a/pkgs/applications/misc/shell-genie/default.nix b/pkgs/applications/misc/shell-genie/default.nix new file mode 100644 index 0000000000000..1429aabcd8068 --- /dev/null +++ b/pkgs/applications/misc/shell-genie/default.nix @@ -0,0 +1,44 @@ +{ lib +, python3 +, fetchFromGitHub +, poetry +}: + +with python3.pkgs; + +buildPythonPackage rec { + pname = "shell-genie"; + version = "unstable-2023-01-27"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "dylanjcastillo"; + repo = pname; + rev = "d6da42a4426e6058a0b5ae07837d8c003cd1239e"; + hash = "sha256-MGhQaTcl3KjAJXorOmMRec07LxH02T81rNbV2mYEpRA="; + }; + + nativeBuildInputs = [ + poetry + poetry-core + ]; + + propagatedBuildInputs = [ + colorama + openai + pyperclip + rich + shellingham + typer + ]; + + # No tests available + doCheck = false; + + meta = with lib; { + description = "Describe your shell commands in natural language"; + homepage = "https://github.com/dylanjcastillo/shell-genie"; + license = licenses.unfree; + maintainers = with maintainers; [ onny ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2307c7ef9ce80..698edfa6b86ef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1568,6 +1568,8 @@ with pkgs; sgrep = callPackage ../tools/text/sgrep { }; + shell-genie = callPackage ../applications/misc/shell-genie { }; + simple-dlna-browser = callPackage ../tools/networking/simple-dlna-browser { }; sorted-grep = callPackage ../tools/text/sorted-grep { };