haskellPackages.tailwind: fix build (#380641)
[NixPkgs.git] / pkgs / by-name / ac / acpica-tools / package.nix
blob7211b45c70ee6955eceade6d858280210e77fbd9
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   bison,
6   flex,
7   nix-update-script,
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "acpica-tools";
12   version = "R2024_12_12";
14   src = fetchFromGitHub {
15     owner = "acpica";
16     repo = "acpica";
17     tag = finalAttrs.version;
18     hash = "sha256-vxiWYUAEk54F1M0WrrMTHZ4DNJxxT/GaXetd5LjE808=";
19   };
21   nativeBuildInputs = [
22     bison
23     flex
24   ];
26   buildFlags = [
27     "acpibin"
28     "acpidump"
29     "acpiexamples"
30     "acpiexec"
31     "acpihelp"
32     "acpisrc"
33     "acpixtract"
34     "iasl"
35   ];
37   env.NIX_CFLAGS_COMPILE = toString ([
38     "-O3"
39   ]);
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
45   # updates.
46   NOWERROR = "TRUE";
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 { };
56   meta = {
57     homepage = "https://www.acpica.org/";
58     description = "ACPICA Tools";
59     license = with lib.licenses; [
60       iasl
61       gpl2Only
62       bsd3
63     ];
64     maintainers = with lib.maintainers; [
65       tadfisher
66       felixsinger
67     ];
68     platforms = lib.platforms.linux ++ lib.platforms.darwin;
69   };