2018-12-31 03:40:47 +00:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, libtool, libX11, xorgproto
|
|
|
|
, libXi, libXaw, libXmu, libXt }:
|
2015-12-29 22:52:11 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
majorVersion = "1";
|
|
|
|
minorVersion = "3";
|
2010-12-22 10:46:57 +00:00
|
|
|
in
|
|
|
|
|
2015-12-29 22:52:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ois-${version}";
|
|
|
|
version = "${majorVersion}.${minorVersion}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/wgois/Source%20Release/${version}/ois_v${majorVersion}-${minorVersion}.tar.gz";
|
|
|
|
sha256 = "18gs6xxhbqb91x2gm95hh1pmakimqim1k9c65h7ah6g14zc7dyjh";
|
|
|
|
};
|
2010-12-22 10:46:57 +00:00
|
|
|
|
2015-12-29 22:52:11 +00:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
url = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-games/ois/files/ois-1.3-gcc47.patch;
|
|
|
|
sha256 = "026jw06n42bcrmg0sbdhzc4cqxsnf7fw30a2z9cigd9x282zhii8";
|
|
|
|
name = "gcc47.patch";
|
|
|
|
})
|
|
|
|
];
|
2013-08-29 13:04:47 +01:00
|
|
|
|
|
|
|
patchFlags = "-p0";
|
2010-12-22 10:46:57 +00:00
|
|
|
|
2015-12-29 22:52:11 +00:00
|
|
|
buildInputs = [
|
2018-12-31 03:40:47 +00:00
|
|
|
autoconf automake libtool libX11 xorgproto libXi libXaw
|
2015-12-29 22:52:11 +00:00
|
|
|
libXmu libXt
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = "sh bootstrap";
|
2013-08-29 13:04:47 +01:00
|
|
|
|
2015-12-29 22:52:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-12-22 10:46:57 +00:00
|
|
|
description = "Object-oriented C++ input system";
|
2015-12-29 22:52:11 +00:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.zlib;
|
2010-12-22 10:46:57 +00:00
|
|
|
};
|
2015-12-29 22:52:11 +00:00
|
|
|
}
|