Advertisement
Guest User

Untitled

a guest
Dec 21st, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. { stdenv, fetchurl, gnumake, python2 }:
  2.  
  3. python2.pkgs.buildPythonApplication rec {
  4. pname = "magicor";
  5. version = "1.1";
  6. format = "other";
  7.  
  8. srcs = [
  9. (fetchurl {
  10. url = "mirror://sourceforge/magicor/1.1/magicor-source-1.1.tar.gz";
  11. sha256 = "0dnyf7mqxspj9ch39qrg62387z8zlyp12s21ibms5pqmdkg1vym0";
  12. })
  13. (fetchurl {
  14. url = "mirror://sourceforge/magicor/1.1/magicor-data-1.1.tar.gz";
  15. sha256 = "0v5dnsv75jkpah5kmansp6x2lx3rr8gmp9plalc5n6c5ic6758fj";
  16. })
  17. ];
  18. # sourceRoot = ".";
  19.  
  20. nativeBuildInputs = [ gnumake ];
  21. propagatedBuildInputs = with python2.pkgs; [ pygame ];
  22. patchPhase = ''
  23. substituteInPlace Makefile --replace "PREFIX=/usr/local" "PREFIX=$out"
  24. '';
  25. installPhase = ''
  26. mkdir -p $out/games
  27. mkdir -p $out/etc
  28. make install
  29. '';
  30.  
  31. postFixup = ''
  32. makeWrapper "${python2.interpreter}" "$out/bin/magicor" \
  33. --set PYTHONPATH "$PYTHONPATH:$out/lib/python2.7/site-packages" \
  34. --run "$out/games/magicor"
  35. '';
  36.  
  37. meta = {
  38. homepage = http://magicor.sourceforge.net/;
  39. description = "Platform game with some brains in it";
  40. longDescription = ''
  41. Help tux solve puzzles in this brain whacking game.
  42. '';
  43. license = stdenv.lib.licenses.publicDomain;
  44. maintainers = with stdenv.lib.maintainers; [ ];
  45. };
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement