summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2023-11-15 07:30:38 +0100
committerVladimír Čunát <v@cunat.cz>2023-11-15 07:30:38 +0100
commit9297b620bb86624e6cf4b6ae54fc4ae1da98bb83 (patch)
tree7a6613983982c782667dca6ff54e14f082cecc8b /pkgs/development/libraries
parented2b1fe02605b0470041a108d2f95b0002183ba8 (diff)
parentd669a6e30d70e146d3083fd9c185118ac0df436b (diff)
downloadnixpkgs-9297b620bb86624e6cf4b6ae54fc4ae1da98bb83.tar
nixpkgs-9297b620bb86624e6cf4b6ae54fc4ae1da98bb83.tar.gz
nixpkgs-9297b620bb86624e6cf4b6ae54fc4ae1da98bb83.tar.bz2
nixpkgs-9297b620bb86624e6cf4b6ae54fc4ae1da98bb83.tar.lz
nixpkgs-9297b620bb86624e6cf4b6ae54fc4ae1da98bb83.tar.xz
nixpkgs-9297b620bb86624e6cf4b6ae54fc4ae1da98bb83.tar.zst
nixpkgs-9297b620bb86624e6cf4b6ae54fc4ae1da98bb83.zip
Merge #266753: ppl: fix build with clang 16
...into staging-next
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/ppl/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ppl/default.nix b/pkgs/development/libraries/ppl/default.nix
index c9b456ba831..d49f3e6bd53 100644
--- a/pkgs/development/libraries/ppl/default.nix
+++ b/pkgs/development/libraries/ppl/default.nix
@@ -17,6 +17,13 @@ stdenv.mkDerivation {
     sha256 = "1zj90hm25pkgvk4jlkfzh18ak9b98217gbidl3731fdccbw6hr87";
   })];
 
+  postPatch = lib.optionalString stdenv.cc.isClang ''
+    substituteInPlace src/PIP_Tree.cc \
+      --replace "std::auto_ptr" "std::unique_ptr"
+    substituteInPlace src/Powerset_inlines.hh src/Pointset_Powerset_inlines.hh \
+      --replace "std::mem_fun_ref" "std::mem_fn"
+  '';
+
   nativeBuildInputs = [ perl gnum4 ];
   propagatedBuildInputs = [ gmpxx ];