diff --git a/user/pkgs/impressive.nix b/user/pkgs/impressive.nix new file mode 100644 index 0000000..cafdf04 --- /dev/null +++ b/user/pkgs/impressive.nix @@ -0,0 +1,45 @@ +# THIS DOES NOT WORK YET! +{ lib, stdenv, buildPythonPackage, pkgs, ... }: + +let name = "Impressive"; + _name = "impressive"; + version = "0.13.2"; +in + buildPythonPackage rec { + inherit name version; + + src = fetchTarball { + url = "https://sourceforge.net/projects/${_name}/files/${name}/${version}/${name}-${version}.tar.gz/download"; + sha256 = "sha256:0zbkqc29mgm93mysf3y5gvkaj4xxp1jv4ix1fqrcpfx3cricrkql"; + }; + + phases = "installPhase"; + + pyproject = false; + doCheck = false; + + propagatedBuildInputs = with pkgs; [ + python3Packages.pygame + python3Packages.pyopengl + python3Packages.pillow + python3Packages.pygame_sdl2 + python3Packages.pygame-gui + ffmpeg + mplayer + xdg-utils + ]; + + installPhase = '' + mkdir -p $out $out/bin $out/opt $out/share $out/share/doc $out/share/man + cp $src/impressive.py $out/opt + chmod +x $out/opt/impressive.py + ln -s $out/opt/impressive.py $out/bin/impressive + ''; + + meta = { + homepage = "https://impressive.sourceforge.net/"; + description = "the Chuck Norris of presentation software"; + license = lib.licenses.gpl2Only; + maintainers = []; + }; + } diff --git a/user/shell/cli-collection.nix b/user/shell/cli-collection.nix index 920ca39..dd6375e 100644 --- a/user/shell/cli-collection.nix +++ b/user/shell/cli-collection.nix @@ -23,6 +23,7 @@ pciutils #(pkgs.callPackage ../pkgs/ytsub.nix { }) #(pkgs.callPackage ../pkgs/russ.nix { }) + #(pkgs.python3Packages.callPackage ../pkgs/impressive.nix { }) (pkgs.callPackage ../pkgs/pokemon-colorscripts.nix { }) (pkgs.writeShellScriptBin "airplane-mode" '' #!/bin/sh