mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{stdenv, fetchurl, SDL2, SDL2_image, libGLU_combined, cmake, physfs, boost, zip, zlib
|
|
, pkgconfig, unzip}:
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0";
|
|
pname = "blobby-volley";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/blobby/Blobby%20Volley%202%20%28Linux%29/1.0/blobby2-linux-1.0.tar.gz";
|
|
sha256 = "1qpmbdlyhfbrdsq4vkb6cb3b8mh27fpizb71q4a21ala56g08yms";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [SDL2 SDL2_image libGLU_combined cmake physfs boost zip zlib
|
|
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 = "https://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/";
|
|
inherit version;
|
|
};
|
|
}
|