2018-02-24 14:12:44 +01:00
|
|
|
{stdenv, fetchurl, SDL2, SDL2_image, libGLU_combined, cmake, physfs, boost, zip, zlib
|
2016-10-31 18:36:53 +01:00
|
|
|
, pkgconfig, unzip}:
|
2012-04-17 15:06:12 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-07-01 09:04:36 +02:00
|
|
|
version = "1.0";
|
2012-04-17 15:06:12 +02:00
|
|
|
name = "blobby-volley-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-07-01 09:04:36 +02:00
|
|
|
url = "http://softlayer-ams.dl.sourceforge.net/project/blobby/Blobby%20Volley%202%20%28Linux%29/1.0/blobby2-linux-1.0.tar.gz";
|
|
|
|
sha256 = "1qpmbdlyhfbrdsq4vkb6cb3b8mh27fpizb71q4a21ala56g08yms";
|
2012-04-17 15:06:12 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-02-24 14:12:44 +01:00
|
|
|
buildInputs = [SDL2 SDL2_image libGLU_combined cmake physfs boost zip zlib
|
2016-10-31 18:36:53 +01:00
|
|
|
unzip];
|
2012-04-17 15:06:12 +02:00
|
|
|
|
2014-07-01 09:04:36 +02:00
|
|
|
preConfigure=''
|
|
|
|
sed -e '1i#include <iostream>' -i src/NetworkMessage.cpp
|
2012-04-17 15:06:12 +02:00
|
|
|
'';
|
|
|
|
|
2016-10-31 18:36:53 +01:00
|
|
|
inherit unzip;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp ../data/Icon.bmp "$out/share/blobby/"
|
|
|
|
mv "$out/bin"/blobby{,.bin}
|
|
|
|
substituteAll "${./blobby.sh}" "$out/bin/blobby"
|
|
|
|
chmod a+x "$out/bin/blobby"
|
|
|
|
'';
|
|
|
|
|
2012-04-17 15:06:12 +02:00
|
|
|
meta = {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = ''A blobby volleyball game'';
|
2015-05-28 19:20:29 +02:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2012-04-17 15:06:12 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://blobby.sourceforge.net/;
|
2014-07-01 09:04:36 +02:00
|
|
|
downloadPage = "http://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/";
|
|
|
|
inherit version;
|
2012-04-17 15:06:12 +02:00
|
|
|
};
|
|
|
|
}
|