2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, bison, flex }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "acpica-tools";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "20211217";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "14jrrdrl3sw438791zf2v6rjvhiq78yl7hz2ldzp83c251cgh495";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-O3";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildFlags = [
|
|
|
|
"acpibin"
|
|
|
|
"acpidump"
|
2021-08-05 21:33:18 +00:00
|
|
|
"acpiexamples"
|
2020-04-24 23:36:52 +00:00
|
|
|
"acpiexec"
|
|
|
|
"acpihelp"
|
2021-08-05 21:33:18 +00:00
|
|
|
"acpisrc"
|
2020-04-24 23:36:52 +00:00
|
|
|
"acpixtract"
|
2021-08-10 14:31:46 +00:00
|
|
|
"iasl"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# We can handle stripping ourselves.
|
|
|
|
INSTALLFLAGS = "-m 555";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ACPICA Tools";
|
|
|
|
homepage = "https://www.acpica.org/";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = with licenses; [ iasl gpl2Only bsd3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ tadfisher ];
|
|
|
|
};
|
|
|
|
}
|