571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1.1 KiB
Nix
38 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.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/blobby/Blobby%20Volley%202%20%28Linux%29/1.1.1/blobby2-linux-1.1.1.tar.gz";
|
|
sha256 = "sha256-NX7lE+adO1D2f8Bj1Ky3lZpf6Il3gX8KqxTMxw2yFLo=";
|
|
};
|
|
|
|
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 = "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";
|
|
};
|
|
}
|