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