diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-10-27 08:56:28 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-10-27 08:58:05 -0400 |
commit | 0194cd67af6e93b382ea4e4742489a2ecb4525e3 (patch) | |
tree | c1f3597a6991cdffacb431dbaf3248ee8eac2c65 | |
parent | d73f0a117530ecb453f1dcc4f22eddfb2ab02365 (diff) | |
download | nixpkgs-0194cd67af6e93b382ea4e4742489a2ecb4525e3.tar nixpkgs-0194cd67af6e93b382ea4e4742489a2ecb4525e3.tar.gz nixpkgs-0194cd67af6e93b382ea4e4742489a2ecb4525e3.tar.bz2 nixpkgs-0194cd67af6e93b382ea4e4742489a2ecb4525e3.tar.lz nixpkgs-0194cd67af6e93b382ea4e4742489a2ecb4525e3.tar.xz nixpkgs-0194cd67af6e93b382ea4e4742489a2ecb4525e3.tar.zst nixpkgs-0194cd67af6e93b382ea4e4742489a2ecb4525e3.zip |
aiger: fix build with clang 16
Add missing header to resolve implicit decalaration of `isatty`.
-rw-r--r-- | pkgs/applications/science/logic/aiger/default.nix | 5 | ||||
-rw-r--r-- | pkgs/applications/science/logic/aiger/fix-missing-header.patch | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/applications/science/logic/aiger/default.nix b/pkgs/applications/science/logic/aiger/default.nix index 15c45466b13..972bea3fbc3 100644 --- a/pkgs/applications/science/logic/aiger/default.nix +++ b/pkgs/applications/science/logic/aiger/default.nix @@ -9,6 +9,11 @@ stdenv.mkDerivation rec { sha256 = "1ish0dw0nf9gyghxsdhpy1jjiy5wp54c993swp85xp7m6vdx6l0y"; }; + patches = [ + # Fix implicit declaration of `isatty`, which is an error with newer versions of clang. + ./fix-missing-header.patch + ]; + enableParallelBuilding = true; configurePhase = '' diff --git a/pkgs/applications/science/logic/aiger/fix-missing-header.patch b/pkgs/applications/science/logic/aiger/fix-missing-header.patch new file mode 100644 index 00000000000..5f0101bd7a0 --- /dev/null +++ b/pkgs/applications/science/logic/aiger/fix-missing-header.patch @@ -0,0 +1,11 @@ +diff -ur a/aigunconstraint.c b/aigunconstraint.c +--- a/aigunconstraint.c 2013-10-06 09:08:03.000000000 -0400 ++++ b/aigunconstraint.c 2023-10-27 08:55:01.678566389 -0400 +@@ -26,6 +26,7 @@ + #include <stdarg.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + + static const char * USAGE = + "usage: aigunconstraint [-h][-v] [<input> [<output>]]\n" |