2022-12-02 08:20:57 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL2, SDL2_image, libGLU, libGL, cmake, physfs, boost, zip, zlib, unzip, pkg-config }:
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "blobby-volley";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-08-22 20:05:09 +00:00
|
|
|
url = "mirror://sourceforge/blobby/Blobby%20Volley%202%20%28Linux%29/1.1.1/blobby2-linux-1.1.1.tar.gz";
|
|
|
|
sha256 = "sha256-NX7lE+adO1D2f8Bj1Ky3lZpf6Il3gX8KqxTMxw2yFLo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config zip ];
|
|
|
|
buildInputs = [ SDL2 SDL2_image libGLU libGL physfs boost zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure=''
|
|
|
|
sed -e '1i#include <iostream>' -i src/NetworkMessage.cpp
|
|
|
|
'';
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
inherit unzip;
|
|
|
|
|
2020-04-24 23:36:52 +00: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 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "A blobby volleyball game";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2022-12-02 08:20:57 +00:00
|
|
|
homepage = "https://blobbyvolley.de/";
|
2020-04-24 23:36:52 +00:00
|
|
|
downloadPage = "https://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/";
|
2022-12-02 08:20:57 +00:00
|
|
|
mainProgram = "blobby";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|