diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2015-12-08 15:49:28 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2015-12-08 16:30:24 +0100 |
commit | e1f2ddefd93a2064aedc7952654ecddba93ed524 (patch) | |
tree | ca77530915e50638490d6e4a3c29172b36a3785c /pkgs/games | |
parent | 6c7af844498f5dd8da81fd3e6374ecfce6f17ae8 (diff) |
tpm thePenguinMachine: remove package
because source is unavailable
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/thePenguinMachine/default.nix | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/pkgs/games/thePenguinMachine/default.nix b/pkgs/games/thePenguinMachine/default.nix deleted file mode 100644 index 6829c084ce9e9..0000000000000 --- a/pkgs/games/thePenguinMachine/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{stdenv, fetchurl, python, pillow, pygame, SDL} @ args: with args; -stdenv.mkDerivation { - name = "thePenguinMachine"; - - src = fetchurl { - url = http://www.migniot.com/matrix/projects/thepenguinmachine/ThePenguinMachine.tar.gz; - sha256 = "09ljks8vj75g00h3azc83yllbfsrxwmv1c9g32gylcmsshik0dqv"; - }; - # Perhaps the following source works? See http://tpm.seul.org/ - # url = http://tpm.seul.org/TPM.tar.bz2; - # sha256 = "8fc2f2961a54005cd7f349dd859823addf05b01d0e3b3e83928b5b75460930fa"; - - broken = true; # Not found - - buildInputs = [python pillow pygame SDL]; - - configurePhase = '' - sed -e "/includes = /aincludes.append('${SDL}/include/SDL')" -i setup.py; - sed -e "/includes = /aincludes.append('$(echo ${pygame}/include/python*)')" -i setup.py; - cat setup.py; - export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s" - ''; - buildPhase = '' - sed -e "s/pygame.display.toggle_fullscreen.*/pass;/" -i tpm/Application.py - sed -e 's@"Surface"@"pygame.Surface"@' -i src/surfutils.c - python setup.py build; - python setup.py build_clib; - python setup.py build_ext; - python setup.py build_py; - python setup.py build_scripts; - ''; - installPhase = '' - python setup.py install --prefix=$out - mkdir -p "$out"/share/tpm/ - cp -r . "$out"/share/tpm/build-dir - mkdir -p "$out/bin" - echo "#! /bin/sh" >> "$out/bin/tpm" - echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pillow}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm" - echo "cd \"$out/share/tpm/build-dir\"" >> "$out/bin/tpm" - echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pillow}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm" - echo "${python}/bin/python \"$out\"/share/tpm/build-dir/ThePenguinMachine.py \"\$@\"" >> "$out/bin/tpm" - chmod a+x "$out/bin/tpm" - ''; - - meta = { - description = "An Incredible Machine clone"; - }; -} |