2021-02-05 17:12:51 +00:00
|
|
|
{ fetchurl, fetchpatch, lib, stdenv, libGLU, libGL, freeglut, SDL
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXi, libSM, libXmu, libXext, libX11 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "plib";
|
|
|
|
version = "1.8.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# XXX: The author doesn't use the orthodox SF way to store tarballs.
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "http://plib.sourceforge.net/dist/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0cha71mflpa10vh2l7ipyqk67dq2y0k5xbafwdks03fwdyzj4ns8";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.net/data/main/p/plib/1.8.5-7/debian/patches/04_CVE-2011-4620.diff";
|
|
|
|
sha256 = "1b7y0vqqdzd48q68ldlzw0zzqy9mg4c10a754r4hi3ldjmcplf0j";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.net/data/main/p/plib/1.8.5-7/debian/patches/05_CVE-2012-4552.diff";
|
|
|
|
sha256 = "0b6cwdwii5b5vy78sbw5cw1s96l4jyzr4dk69v63pa0wwi2b5dki";
|
|
|
|
})
|
2022-10-21 18:38:19 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/p/plib/1.8.5-13/debian/patches/08_CVE-2021-38714.patch";
|
|
|
|
sha256 = "sha256-3f1wZn0QqK/hPWCg1KEzbB95IGoxBjLZoCOFlW98t5w=";
|
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libGLU libGL freeglut SDL
|
|
|
|
|
|
|
|
# The following libs ought to be propagated build inputs of Mesa.
|
|
|
|
libXi libSM libXmu libXext libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A suite of portable game libraries";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
PLIB includes sound effects, music, a complete 3D engine, font
|
|
|
|
rendering, a simple Windowing library, a game scripting
|
|
|
|
language, a GUI, networking, 3D math library and a collection of
|
|
|
|
handy utility functions. All are 100% portable across nearly
|
|
|
|
all modern computing platforms. What's more, it's all available
|
|
|
|
on line - and completely free. Each library component is fairly
|
|
|
|
independent of the others - so if you want to use SDL, GTK,
|
|
|
|
GLUT, or FLTK instead of PLIB's 'PW' windowing library, you can.
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
homepage = "http://plib.sourceforge.net/";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|