Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { stdenv, fetchurl, gnumake, python2 }:
- python2.pkgs.buildPythonApplication rec {
- pname = "magicor";
- version = "1.1";
- format = "other";
- srcs = [
- (fetchurl {
- url = "mirror://sourceforge/magicor/1.1/magicor-source-1.1.tar.gz";
- sha256 = "0dnyf7mqxspj9ch39qrg62387z8zlyp12s21ibms5pqmdkg1vym0";
- })
- (fetchurl {
- url = "mirror://sourceforge/magicor/1.1/magicor-data-1.1.tar.gz";
- sha256 = "0v5dnsv75jkpah5kmansp6x2lx3rr8gmp9plalc5n6c5ic6758fj";
- })
- ];
- # sourceRoot = ".";
- nativeBuildInputs = [ gnumake ];
- propagatedBuildInputs = with python2.pkgs; [ pygame ];
- patchPhase = ''
- substituteInPlace Makefile --replace "PREFIX=/usr/local" "PREFIX=$out"
- '';
- installPhase = ''
- mkdir -p $out/games
- mkdir -p $out/etc
- make install
- '';
- postFixup = ''
- makeWrapper "${python2.interpreter}" "$out/bin/magicor" \
- --set PYTHONPATH "$PYTHONPATH:$out/lib/python2.7/site-packages" \
- --run "$out/games/magicor"
- '';
- meta = {
- homepage = http://magicor.sourceforge.net/;
- description = "Platform game with some brains in it";
- longDescription = ''
- Help tux solve puzzles in this brain whacking game.
- '';
- license = stdenv.lib.licenses.publicDomain;
- maintainers = with stdenv.lib.maintainers; [ ];
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement