nixpkgs/pkgs/games/kobodeluxe/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
746 B
Nix

{lib, stdenv, fetchurl, SDL, SDL_image, libGLU, libGL} :
stdenv.mkDerivation rec {
pname = "kobodeluxe";
version = "0.5.1";
src = fetchurl {
url = "http://olofson.net/kobodl/download/KoboDeluxe-${version}.tar.bz2";
sha256 = "0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c";
};
buildInputs = [ SDL SDL_image libGLU libGL ];
prePatch = ''
sed -e 's/char \*tok/const char \*tok/' -i graphics/window.cpp
'';
patches = [ ./glibc29.patch ];
meta = {
homepage = "http://olofson.net/kobodl/";
description = "Enhanced version of Akira Higuchi's game XKobo for Un*x systems with X11";
mainProgram = "kobodl";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
}