2021-01-22 11:25:31 +00:00
|
|
|
{lib, 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";
|
2020-01-10 21:40:18 +00:00
|
|
|
version = "20200110";
|
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";
|
2020-01-10 21:40:18 +00:00
|
|
|
sha256 = "1cb6aa6acrixmdzvj9vv4qs9lmlsbkd27pjlz14i1kq1x3xn0gwx";
|
2009-01-25 14:31:42 +00:00
|
|
|
};
|
|
|
|
|
2019-12-31 02:58:41 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-O3";
|
2009-01-25 14:31:42 +00:00
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
buildFlags = [ "iasl" ];
|
2009-01-25 14:31:42 +00:00
|
|
|
|
|
|
|
buildInputs = [ bison flex ];
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.acpica.org/";
|
2021-01-22 11:25:31 +00:00
|
|
|
license = lib.licenses.iasl;
|
|
|
|
platforms = lib.platforms.unix;
|
2009-01-25 14:31:42 +00:00
|
|
|
};
|
|
|
|
}
|