summary refs log tree commit diff
path: root/pkgs/development/libraries/boost
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2018-12-09 21:19:27 -0500
committerSamuel Dionne-Riel <samuel@dionne-riel.com>2018-12-10 14:55:20 -0500
commit3487ff99dacc40d8c9be3563078ab3b2cd296459 (patch)
tree0bf758c943ce07c561ef889550998aefde1c7f84 /pkgs/development/libraries/boost
parent38d6719cbc63db6b9346037d282748cc82be672b (diff)
downloadnixpkgs-3487ff99dacc40d8c9be3563078ab3b2cd296459.tar
nixpkgs-3487ff99dacc40d8c9be3563078ab3b2cd296459.tar.gz
nixpkgs-3487ff99dacc40d8c9be3563078ab3b2cd296459.tar.bz2
nixpkgs-3487ff99dacc40d8c9be3563078ab3b2cd296459.tar.lz
nixpkgs-3487ff99dacc40d8c9be3563078ab3b2cd296459.tar.xz
nixpkgs-3487ff99dacc40d8c9be3563078ab3b2cd296459.tar.zst
nixpkgs-3487ff99dacc40d8c9be3563078ab3b2cd296459.zip
boost: Fixes disabling for aarch64-linux for <1.59
Between 2b450377bf6e51cce0d831a88e74d5f61811b74d and the current
revision, the semantics behind "platforms" changed, and removing the
"aarch64-linux" string doesn't work anymore to filter it out.

Instead, blacklist the platform using the (comparatively) new
badPlatforms.
Diffstat (limited to 'pkgs/development/libraries/boost')
-rw-r--r--pkgs/development/libraries/boost/generic.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix
index c79b874ecb6..3e488acee74 100644
--- a/pkgs/development/libraries/boost/generic.nix
+++ b/pkgs/development/libraries/boost/generic.nix
@@ -111,7 +111,8 @@ stdenv.mkDerivation {
     description = "Collection of C++ libraries";
     license = stdenv.lib.licenses.boost;
 
-    platforms = (if versionOlder version "1.59" then remove "aarch64-linux" else id) (platforms.unix ++ platforms.windows);
+    platforms = (platforms.unix ++ platforms.windows);
+    badPlatforms = stdenv.lib.optional (versionOlder version "1.59") "aarch64-linux";
     maintainers = with maintainers; [ peti wkennington ];
   };