2013-01-31 22:16:31 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig }:
|
2008-10-26 09:40:11 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-31 22:16:31 +01:00
|
|
|
name = "liboil-0.3.17";
|
2008-10-26 09:40:11 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/${name}.tar.gz";
|
2013-01-31 22:16:31 +01:00
|
|
|
sha256 = "0sgwic99hxlb1av8cm0albzh8myb7r3lpcwxfm606l0bkc3h4pqh";
|
2008-10-26 09:40:11 +01:00
|
|
|
};
|
|
|
|
|
2013-01-31 22:16:31 +01:00
|
|
|
buildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
patches = [ ./x86_64-cpuid.patch ];
|
2008-10-26 09:40:11 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://liboil.freedesktop.org;
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A library of simple functions that are optimized for various CPUs";
|
2013-01-31 22:16:31 +01:00
|
|
|
license = "BSD-2";
|
2008-10-26 09:40:11 +01:00
|
|
|
};
|
|
|
|
}
|