nixpkgs/pkgs/games/blobby/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

38 lines
1.1 KiB
Nix

{stdenv, fetchurl, SDL2, SDL2_image, mesa, cmake, physfs, boost, zip, zlib
, pkgconfig, unzip}:
stdenv.mkDerivation rec {
version = "1.0";
name = "blobby-volley-${version}";
src = fetchurl {
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";
};
buildInputs = [SDL2 SDL2_image mesa cmake physfs boost zip zlib pkgconfig
unzip];
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/;
downloadPage = "http://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/";
inherit version;
};
}