2009-01-25 17:31:42 +03:00
|
|
|
{stdenv, fetchurl, bison, flex}:
|
|
|
|
|
2017-03-11 19:28:56 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iasl-${version}";
|
|
|
|
version = "20170303";
|
2013-01-28 15:42:24 +04:00
|
|
|
|
2009-01-25 17:31:42 +03:00
|
|
|
src = fetchurl {
|
2017-03-11 19:28:56 +03:00
|
|
|
url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz";
|
|
|
|
sha256 = "1dc933rr11gv1nlaf5j8ih1chdakbjbjkn34jgbm330zppmck4y0";
|
2009-01-25 17:31:42 +03:00
|
|
|
};
|
|
|
|
|
2013-01-28 15:42:24 +04:00
|
|
|
NIX_CFLAGS_COMPILE = "-O3";
|
2009-01-25 17:31:42 +03:00
|
|
|
|
2013-01-28 15:42:24 +04:00
|
|
|
buildFlags = "iasl";
|
2009-01-25 17:31:42 +03:00
|
|
|
|
|
|
|
buildInputs = [ bison flex ];
|
|
|
|
|
2013-01-28 15:42:24 +04:00
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
install -d $out/bin
|
|
|
|
install generate/unix/bin*/iasl $out/bin
|
|
|
|
'';
|
|
|
|
|
2009-01-25 17:31:42 +03:00
|
|
|
meta = {
|
|
|
|
description = "Intel ACPI Compiler";
|
|
|
|
homepage = http://www.acpica.org/;
|
2014-11-06 03:44:33 +03:00
|
|
|
license = stdenv.lib.licenses.iasl;
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-01-25 17:31:42 +03:00
|
|
|
};
|
|
|
|
}
|