2021-01-15 05:31:39 +01:00
|
|
|
{ lib, stdenv, fetchurl, SDL2, SDL2_image, libGLU, libGL, cmake, physfs, boost, zip, zlib, pkg-config }:
|
2020-12-31 08:48:55 +01:00
|
|
|
|
2012-04-17 15:06:12 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "blobby-volley";
|
2020-12-31 08:48:55 +01:00
|
|
|
version = "1.0";
|
2012-04-17 15:06:12 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-24 19:58:03 +01:00
|
|
|
url = "mirror://sourceforge/blobby/Blobby%20Volley%202%20%28Linux%29/1.0/blobby2-linux-1.0.tar.gz";
|
2014-07-01 09:04:36 +02:00
|
|
|
sha256 = "1qpmbdlyhfbrdsq4vkb6cb3b8mh27fpizb71q4a21ala56g08yms";
|
2012-04-17 15:06:12 +02:00
|
|
|
};
|
|
|
|
|
2020-12-31 08:48:55 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config zip ];
|
|
|
|
buildInputs = [ SDL2 SDL2_image libGLU libGL physfs boost zlib ];
|
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
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 05:31:39 +01:00
|
|
|
meta = with lib; {
|
2021-01-24 10:19:10 +01:00
|
|
|
description = "A blobby volleyball game";
|
2020-12-31 08:48:55 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://blobby.sourceforge.net/";
|
2018-11-24 19:58:03 +01:00
|
|
|
downloadPage = "https://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/";
|
2012-04-17 15:06:12 +02:00
|
|
|
};
|
|
|
|
}
|