nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 64 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 SDL2, 6 SDL2_image, 7 libGLU, 8 libGL, 9 cmake, 10 physfs, 11 boost, 12 zip, 13 zlib, 14 unzip, 15 pkg-config, 16}: 17 18stdenv.mkDerivation { 19 pname = "blobby-volley"; 20 version = "1.1.1"; 21 22 src = fetchurl { 23 url = "mirror://sourceforge/blobby/Blobby%20Volley%202%20%28Linux%29/1.1.1/blobby2-linux-1.1.1.tar.gz"; 24 sha256 = "sha256-NX7lE+adO1D2f8Bj1Ky3lZpf6Il3gX8KqxTMxw2yFLo="; 25 }; 26 27 nativeBuildInputs = [ 28 cmake 29 pkg-config 30 zip 31 ]; 32 buildInputs = [ 33 SDL2 34 SDL2_image 35 libGLU 36 libGL 37 physfs 38 boost 39 zlib 40 ]; 41 42 preConfigure = '' 43 sed -e '1i#include <iostream>' -i src/NetworkMessage.cpp 44 ''; 45 46 inherit unzip; 47 48 postInstall = '' 49 cp ../data/Icon.bmp "$out/share/blobby/" 50 mv "$out/bin"/blobby{,.bin} 51 substituteAll "${./blobby.sh}" "$out/bin/blobby" 52 chmod a+x "$out/bin/blobby" 53 ''; 54 55 meta = with lib; { 56 description = "Volleyball game"; 57 license = licenses.bsd3; 58 platforms = platforms.linux; 59 maintainers = with maintainers; [ raskin ]; 60 homepage = "https://blobbyvolley.de/"; 61 downloadPage = "https://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/"; 62 mainProgram = "blobby"; 63 }; 64}