From ad75dfa1df7b6038f6e967ba774bfd20ec7fa68e Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 11 Nov 2023 15:05:50 -0600 Subject: [PATCH] I tried and failed at building impressive --- user/pkgs/impressive.nix | 45 +++++++++++++++++++++++++++++++++++ user/shell/cli-collection.nix | 1 + 2 files changed, 46 insertions(+) create mode 100644 user/pkgs/impressive.nix diff --git a/user/pkgs/impressive.nix b/user/pkgs/impressive.nix new file mode 100644 index 00000000..cafdf04c --- /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 920ca39c..dd6375e5 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