diff --git a/pkgs/applications/misc/shell-genie/default.nix b/pkgs/applications/misc/shell-genie/default.nix new file mode 100644 index 000000000000..1429aabcd806 --- /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 2307c7ef9ce8..698edfa6b86e 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 { };