Unverified Commit 43aabff9 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #230769 from delroth/acpica-i686

parents daf7d886 a8443f15
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -7,13 +7,11 @@

stdenv.mkDerivation rec {
  pname = "acpica-tools";
  version = "20221020";
  version = "20230331";

  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=";
    url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz";
    hash = "sha256-DF1pXWBaqmFwnzxj9XoambiQIpFyOZhEawgTtXrDEOI=";
  };

  nativeBuildInputs = [ bison flex ];
@@ -38,6 +36,11 @@ stdenv.mkDerivation rec {

  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.isDarwin) "-m 555";