nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
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-unstable-2025-07-26";
21
22 src = fetchFromGitHub {
23 owner = "danielknobe";
24 repo = "blobbyvolley2";
25 rev = "9bc797f0fade4766f2d98f8cf4db0a8a7b82a950";
26 sha256 = "sha256-0e1YOwHX2x/snkyH1qeQowJr1YGdExstUoCBOhG1kBU=";
27 };
28
29 nativeBuildInputs = [
30 cmake
31 pkg-config
32 zip
33 ];
34 buildInputs = [
35 SDL2
36 SDL2_image
37 libGLU
38 libGL
39 physfs
40 boost
41 zlib
42 ];
43
44 inherit unzip;
45
46 postInstall = ''
47 cp ../data/Icon.bmp "$out/share/blobby/"
48 mv "$out/bin"/blobby{,.bin}
49 substituteAll "${./blobby.sh}" "$out/bin/blobby"
50 chmod a+x "$out/bin/blobby"
51 '';
52
53 meta = {
54 description = "Volleyball game";
55 license = lib.licenses.bsd3;
56 platforms = lib.platforms.linux;
57 maintainers = with lib.maintainers; [ raskin ];
58 homepage = "https://blobbyvolley.de/";
59 downloadPage = "https://sourceforge.net/projects/blobby/files/Blobby%20Volley%202%20%28Linux%29/";
60 mainProgram = "blobby";
61 };
62}