2021-01-15 04:31:39 +00:00
|
|
|
{lib, stdenv, fetchurl, SDL, SDL_image, libGLU, libGL} :
|
2009-04-14 22:25:03 +00:00
|
|
|
|
2021-06-22 21:44:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kobodeluxe";
|
|
|
|
version = "0.5.1";
|
2009-04-14 22:25:03 +00:00
|
|
|
src = fetchurl {
|
2021-06-22 21:44:58 +00:00
|
|
|
url = "http://olofson.net/kobodl/download/KoboDeluxe-${version}.tar.bz2";
|
2009-04-14 22:25:03 +00:00
|
|
|
sha256 = "0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c";
|
|
|
|
};
|
|
|
|
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ SDL SDL_image libGLU libGL ];
|
2009-04-14 22:25:03 +00:00
|
|
|
|
2012-07-12 21:42:20 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -e 's/char \*tok/const char \*tok/' -i graphics/window.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./glibc29.patch ];
|
|
|
|
|
2009-04-14 22:25:03 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://olofson.net/kobodl/";
|
2009-04-14 22:25:03 +00:00
|
|
|
description = "Enhanced version of Akira Higuchi's game XKobo for Un*x systems with X11";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2009-04-14 22:25:03 +00:00
|
|
|
};
|
|
|
|
}
|