2018-06-05 19:06:09 +01:00
|
|
|
{stdenv, fetchurl, fetchpatch, bison, flex}:
|
2009-01-25 14:31:42 +00:00
|
|
|
|
2017-03-11 16:28:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "iasl";
|
2018-12-19 19:04:37 +00:00
|
|
|
version = "20181213";
|
2013-01-28 11:42:24 +00:00
|
|
|
|
2009-01-25 14:31:42 +00:00
|
|
|
src = fetchurl {
|
2017-03-11 16:28:56 +00:00
|
|
|
url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz";
|
2018-12-19 19:04:37 +00:00
|
|
|
sha256 = "1vgqlv9pvxc52faxixpgz7hi1awqmj88bw5vqn3bldf6fmkh147w";
|
2009-01-25 14:31:42 +00:00
|
|
|
};
|
|
|
|
|
2018-05-16 20:10:59 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-O3"
|
|
|
|
];
|
2009-01-25 14:31:42 +00:00
|
|
|
|
2013-01-28 11:42:24 +00:00
|
|
|
buildFlags = "iasl";
|
2009-01-25 14:31:42 +00:00
|
|
|
|
|
|
|
buildInputs = [ bison flex ];
|
|
|
|
|
2018-06-05 19:06:09 +01:00
|
|
|
patches = fetchpatch {
|
|
|
|
/* https://github.com/acpica/acpica/pull/389 */
|
|
|
|
url = "https://github.com/acpica/acpica/commit/935ca65f7806a3ef9bd02a947e50f3a1f586ac67.patch";
|
|
|
|
sha256 = "0jz4bakifphm425shbd1j99hldgy71m7scl8mwibm441d56l3ydf";
|
|
|
|
};
|
|
|
|
|
2013-01-28 11:42:24 +00:00
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
install -d $out/bin
|
|
|
|
install generate/unix/bin*/iasl $out/bin
|
|
|
|
'';
|
|
|
|
|
2009-01-25 14:31:42 +00:00
|
|
|
meta = {
|
|
|
|
description = "Intel ACPI Compiler";
|
|
|
|
homepage = http://www.acpica.org/;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.iasl;
|
2018-11-15 21:17:03 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-01-25 14:31:42 +00:00
|
|
|
};
|
|
|
|
}
|