1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00

Merge pull request #108961 from iblech/patch-jumpnbump

jumpnbump: init at 1.70-dev
This commit is contained in:
Sandro 2021-01-11 02:18:07 +01:00 committed by GitHub
commit 4d69305d75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -5094,6 +5094,8 @@ in
jnettop = callPackage ../tools/networking/jnettop { };
jumpnbump = callPackage ../games/jumpnbump { };
junkie = callPackage ../tools/networking/junkie { };
just = callPackage ../development/tools/just { };