summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-11-26 09:31:01 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-11-26 20:09:01 +0000
commit89d26b9e2240cfa19f3842b9b9679b0285a190c5 (patch)
treee49f004e93f41e67d361ad9c89ff9650fd3bacae
parentMerge pull request #270220 from NixOS/backport-269970-to-release-23.11 (diff)
downloadnixpkgs-origin/backport-270090-to-release-23.11.tar.gz
libxmlxx: code predates c++17, use -std=c++11; fix darwinorigin/backport-270090-to-release-23.11
code from is from 2015 https://download.gnome.org/sources/libxml++/2.40/ (cherry picked from commit 3f13584af6c4074846807fba426bf82f80f47a06)
-rw-r--r--pkgs/development/libraries/libxmlxx/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libxmlxx/default.nix b/pkgs/development/libraries/libxmlxx/default.nix
index 717ef7c70bde..9ec4090f60f0 100644
--- a/pkgs/development/libraries/libxmlxx/default.nix
+++ b/pkgs/development/libraries/libxmlxx/default.nix
@@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a";
};
+ configureFlags = [
+ # remove if library is updated
+ "CXXFLAGS=-std=c++11"
+ ];
+
outputs = [ "out" "devdoc" ];
nativeBuildInputs = [ pkg-config perl ];