10 stdenv.mkDerivation (finalAttrs: {
11 pname = "acpica-tools";
12 version = "R2024_12_12";
14 src = fetchFromGitHub {
17 tag = finalAttrs.version;
18 hash = "sha256-vxiWYUAEk54F1M0WrrMTHZ4DNJxxT/GaXetd5LjE808=";
37 env.NIX_CFLAGS_COMPILE = toString ([
41 enableParallelBuilding = true;
43 # i686 builds fail with hardening enabled (due to -Wformat-overflow). Disable
44 # -Werror altogether to make this derivation less fragile to toolchain
48 # We can handle stripping ourselves.
49 # Unless we are on Darwin. Upstream makefiles degrade coreutils install to cp if _APPLE is detected.
50 INSTALLFLAGS = lib.optionals (!stdenv.hostPlatform.isDarwin) "-m 555";
52 installFlags = [ "PREFIX=${placeholder "out"}" ];
54 passthru.updateScript = nix-update-script { };
57 homepage = "https://www.acpica.org/";
58 description = "ACPICA Tools";
59 license = with lib.licenses; [
64 maintainers = with lib.maintainers; [
68 platforms = lib.platforms.linux ++ lib.platforms.darwin;