Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
71 lines
1.4 KiB
Nix
71 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
bison,
|
|
flex,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "acpica-tools";
|
|
version = "20250807";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "acpica";
|
|
repo = "acpica";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-OY7jEirUDpzhgT9iCUYWeZmbCQl2R/agGIHXqJI/UBo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
bison
|
|
flex
|
|
];
|
|
|
|
buildFlags = [
|
|
"acpibin"
|
|
"acpidump"
|
|
"acpiexamples"
|
|
"acpiexec"
|
|
"acpihelp"
|
|
"acpisrc"
|
|
"acpixtract"
|
|
"iasl"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-O3"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# i686 builds fail with hardening enabled (due to -Wformat-overflow). Disable
|
|
# -Werror altogether to make this derivation less fragile to toolchain
|
|
# updates.
|
|
NOWERROR = "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.hostPlatform.isDarwin) "-m 555";
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
homepage = "https://www.acpica.org/";
|
|
description = "ACPICA Tools";
|
|
license = with lib.licenses; [
|
|
iasl
|
|
gpl2Only
|
|
bsd3
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
tadfisher
|
|
felixsinger
|
|
];
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
};
|
|
})
|