1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/development/libraries/ois/default.nix
Robert Helgesson abf836b066 ois: use stdenv
This replaces use of `builderDefsPackage`.
2015-12-30 21:15:15 +01:00

42 lines
1.1 KiB
Nix

{ stdenv, fetchurl, autoconf, automake, libtool, libX11, xproto
, libXi, inputproto, libXaw, libXmu, libXt }:
let
majorVersion = "1";
minorVersion = "3";
in
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";
};
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";
})
];
patchFlags = "-p0";
buildInputs = [
autoconf automake libtool libX11 xproto libXi inputproto libXaw
libXmu libXt
];
preConfigure = "sh bootstrap";
meta = with stdenv.lib; {
description = "Object-oriented C++ input system";
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
license = licenses.zlib;
};
}