3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/blobby/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2019-11-10 16:44:34 +00:00
{stdenv, fetchurl, SDL2, SDL2_image, libGLU, libGL, cmake, physfs, boost, zip, zlib
, pkgconfig, unzip}:
stdenv.mkDerivation rec {
2014-07-01 08:04:36 +01:00
version = "1.0";
pname = "blobby-volley";
src = fetchurl {
2018-11-24 18:58:03 +00:00
url = "mirror://sourceforge/blobby/Blobby%20Volley%202%20%28Linux%29/1.0/blobby2-linux-1.0.tar.gz";
2014-07-01 08:04:36 +01:00
sha256 = "1qpmbdlyhfbrdsq4vkb6cb3b8mh27fpizb71q4a21ala56g08yms";
};
nativeBuildInputs = [ pkgconfig ];
2019-11-10 16:44:34 +00:00
buildInputs = [SDL2 SDL2_image libGLU libGL cmake physfs boost zip zlib
unzip];
2014-07-01 08:04:36 +01:00
preConfigure=''
sed -e '1i#include <iostream>' -i src/NetworkMessage.cpp
'';
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"
'';
meta = {
description = ''A blobby volleyball game'';
license = stdenv.lib.licenses.bsd3;
platforms = with stdenv.lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [raskin];
homepage = http://blobby.sourceforge.net/;
2018-11-24 18:58:03 +00:00
downloadPage = "https://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/";
2014-07-01 08:04:36 +01:00
inherit version;
};
}