depot/third_party/nixpkgs/pkgs/games/blobby/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

37 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, SDL2, SDL2_image, libGLU, libGL, cmake, physfs, boost, zip, zlib, unzip, pkg-config }:
stdenv.mkDerivation rec {
pname = "blobby-volley";
version = "1.1";
src = fetchurl {
url = "mirror://sourceforge/blobby/Blobby%20Volley%202%20%28Linux%29/1.1/blobby2-linux-1.1.tar.gz";
sha256 = "sha256-1WJ59Fhb1opXjOci+nAx/F2w5TnBaRhxQuPKgmmLfvQ=";
};
nativeBuildInputs = [ cmake pkg-config zip ];
buildInputs = [ SDL2 SDL2_image libGLU libGL physfs boost zlib ];
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 = with lib; {
description = "A blobby volleyball game";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ raskin ];
homepage = "https://blobbyvolley.de/";
downloadPage = "https://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/";
mainProgram = "blobby";
};
}