6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, bison
|
|
, flex
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "acpica-tools";
|
|
version = "20221020";
|
|
|
|
src = fetchurl {
|
|
# 20221020 has a weird filename published: https://acpica.org/node/201
|
|
name = "acpica-unix-${version}.tar.gz";
|
|
url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar_0.gz";
|
|
hash = "sha256-M6LjlKygylfUAYr+PaNA361etFsbkwDoHdWV/aB88cU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
buildFlags = [
|
|
"acpibin"
|
|
"acpidump"
|
|
"acpiexamples"
|
|
"acpiexec"
|
|
"acpihelp"
|
|
"acpisrc"
|
|
"acpixtract"
|
|
"iasl"
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE = "-O3";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# We can handle stripping ourselves.
|
|
# Unless we are on Darwin. Upstream makefiles degrade coreutils install to cp if _APPLE is detected.
|
|
INSTALLFLAGS = lib.optionals (!stdenv.isDarwin) "-m 555";
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.acpica.org/";
|
|
description = "ACPICA Tools";
|
|
license = with licenses; [ iasl gpl2Only bsd3 ];
|
|
maintainers = with maintainers; [ tadfisher ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|