2018-06-05 11:06:09 -07:00
|
|
|
{stdenv, fetchurl, fetchpatch, bison, flex}:
|
2009-01-25 06:31:42 -08:00
|
|
|
|
2017-03-11 08:28:56 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "iasl";
|
2019-12-30 05:11:04 -08:00
|
|
|
version = "20191213";
|
2013-01-28 03:42:24 -08:00
|
|
|
|
2009-01-25 06:31:42 -08:00
|
|
|
src = fetchurl {
|
2017-03-11 08:28:56 -08:00
|
|
|
url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz";
|
2019-12-30 05:11:04 -08:00
|
|
|
sha256 = "1ip684is3dplf7snkn024vv6bg3dv5msx8v7pz6x9lrnk3gk0j9h";
|
2009-01-25 06:31:42 -08:00
|
|
|
};
|
|
|
|
|
2019-10-27 06:03:25 -07:00
|
|
|
NIX_CFLAGS_COMPILE = "-O3";
|
2009-01-25 06:31:42 -08:00
|
|
|
|
2019-10-27 06:03:25 -07:00
|
|
|
buildFlags = [ "iasl" ];
|
2009-01-25 06:31:42 -08:00
|
|
|
|
|
|
|
buildInputs = [ bison flex ];
|
|
|
|
|
2013-01-28 03:42:24 -08:00
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
install -d $out/bin
|
|
|
|
install generate/unix/bin*/iasl $out/bin
|
|
|
|
'';
|
|
|
|
|
2009-01-25 06:31:42 -08:00
|
|
|
meta = {
|
|
|
|
description = "Intel ACPI Compiler";
|
|
|
|
homepage = http://www.acpica.org/;
|
2014-11-05 16:44:33 -08:00
|
|
|
license = stdenv.lib.licenses.iasl;
|
2018-11-15 13:17:03 -08:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-01-25 06:31:42 -08:00
|
|
|
};
|
|
|
|
}
|