diff options
author | Ingo Blechschmidt <iblech@web.de> | 2021-01-10 16:50:48 +0100 |
---|---|---|
committer | Ingo Blechschmidt <iblech@web.de> | 2021-01-10 22:34:41 +0100 |
commit | f33ae65fe1ff8ec0d80d5355700d88148fe2315c (patch) | |
tree | 23697ccf48e49c12be21775039f6975f13e10e81 /pkgs/games | |
parent | 9f8b7cb4a8948afe0701e5d717a4ee9cbf38163c (diff) |
jumpnbump: init at 1.70-dev
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/jumpnbump/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/games/jumpnbump/default.nix b/pkgs/games/jumpnbump/default.nix new file mode 100644 index 000000000000..d81aece0e821 --- /dev/null +++ b/pkgs/games/jumpnbump/default.nix @@ -0,0 +1,55 @@ +{ stdenv +, fetchFromGitLab +, fetchzip +, SDL2, SDL2_mixer, SDL2_net +, gtk3, gobject-introspection +, python3Packages +, wrapGAppsHook +}: + +let data = fetchzip { + url = "https://mirandir.pagesperso-orange.fr/files/additional-levels.tar.xz"; + sha256 = "167hisscsbldrwrs54gq6446shl8h26qdqigmfg0lq3daynqycg2"; +}; in + +stdenv.mkDerivation rec { + pname = "jumpnbump"; + version = "1.70-dev"; + + # By targeting the development version, we can omit the patches Arch uses + src = fetchFromGitLab { + domain = "gitlab.com"; + owner = "LibreGames"; + repo = pname; + rev = "5744738211ca691444f779aafee3537fb3562516"; + sha256 = "0f1k26jicmb95bx19wgcdpwsbbl343i7mqqqc2z9lkb8drlsyqcy"; + }; + + makeFlags = [ "PREFIX=$(out)" ]; + + nativeBuildInputs = [ python3Packages.wrapPython wrapGAppsHook ]; + buildInputs = [ SDL2 SDL2_mixer SDL2_net gtk3 gobject-introspection ]; + + postInstall = '' + make -C menu PREFIX=$out all install + cp -r ${data}/* $out/share/jumpnbump/ + rm $out/share/applications/jumpnbump-menu.desktop + sed -ie 's+Exec=jumpnbump+Exec=jumpnbump-menu+' $out/share/applications/jumpnbump.desktop + ''; + + pythonPath = with python3Packages; [ pygobject3 pillow ]; + preFixup = '' + buildPythonPath "$out $pythonPath" + ''; + postFixup = '' + wrapPythonPrograms + ''; + + meta = with stdenv.lib; { + description = "cute, true multiplayer platform game with bunnies"; + homepage = "https://libregames.gitlab.io/jumpnbump/"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ iblech ]; + platforms = platforms.unix; + }; +} |