2013-02-01 01:16:31 +04:00
|
|
|
{stdenv, fetchurl, pkgconfig }:
|
2008-10-26 11:40:11 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-02-01 01:16:31 +04:00
|
|
|
name = "liboil-0.3.17";
|
2008-10-26 11:40:11 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/${name}.tar.gz";
|
2013-02-01 01:16:31 +04:00
|
|
|
sha256 = "0sgwic99hxlb1av8cm0albzh8myb7r3lpcwxfm606l0bkc3h4pqh";
|
2008-10-26 11:40:11 +03:00
|
|
|
};
|
|
|
|
|
2013-02-01 01:16:31 +04:00
|
|
|
buildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
patches = [ ./x86_64-cpuid.patch ];
|
2008-10-26 11:40:11 +03:00
|
|
|
|
2013-07-03 13:52:46 +04:00
|
|
|
# fix "argb_paint_i386.c:53:Incorrect register `%rax' used with `l' suffix"
|
|
|
|
# errors
|
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--build=x86_64";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 16:27:40 +03:00
|
|
|
description = "A library of simple functions that are optimized for various CPUs";
|
2013-07-03 13:52:46 +04:00
|
|
|
homepage = http://liboil.freedesktop.org;
|
2013-07-04 20:13:20 +04:00
|
|
|
license = licenses.bsd2;
|
2013-07-03 13:52:46 +04:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.all;
|
2008-10-26 11:40:11 +03:00
|
|
|
};
|
|
|
|
}
|