diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-04-23 09:39:01 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-04-23 09:39:01 +0200 |
commit | f542643ed32d915a4322b31e1d2c33b9207f0a8a (patch) | |
tree | d00b6f93494af9be526dc3052c83533b13d7c076 /pkgs/development/libraries/aws-sdk-cpp | |
parent | 487624c151950796f8fe29e5408507aa7f1ea589 (diff) |
aws-sdk-cpp: revert to older version on i686-linux
After update in PR #169281 (commit f394cc6c5) it won't build: https://hydra.nixos.org/build/174323623 It's still unreliable, as even the i686 builds that succeeded on Hydra won't build for me locally, shooting over the 32-bit memory limit. But I trust this will unblock the nixos-unstable channel on Hydra.
Diffstat (limited to 'pkgs/development/libraries/aws-sdk-cpp')
-rw-r--r-- | pkgs/development/libraries/aws-sdk-cpp/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix index 3cd846c87a13b..8bf009ddacba5 100644 --- a/pkgs/development/libraries/aws-sdk-cpp/default.nix +++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake , curl , openssl @@ -30,13 +31,15 @@ in stdenv.mkDerivation rec { pname = "aws-sdk-cpp"; - version = "1.9.238"; + version = if stdenv.system == "i686-linux" then "1.9.150" + else "1.9.238"; src = fetchFromGitHub { owner = "aws"; repo = "aws-sdk-cpp"; rev = version; - sha256 = "sha256-pEmsTfZXsvJMV79dGkjDNbUVajwyoYgzE5DCsC53pGY="; + sha256 = if version == "1.9.150" then "fgLdXWQKHaCwulrw9KV3vpQ71DjnQAL4heIRW7Rk7UY=" + else "sha256-pEmsTfZXsvJMV79dGkjDNbUVajwyoYgzE5DCsC53pGY="; }; postPatch = '' @@ -109,7 +112,12 @@ stdenv.mkDerivation rec { patches = [ ./cmake-dirs.patch - ]; + ] + ++ lib.optional (lib.versionOlder version "1.9.163") + (fetchpatch { + url = "https://github.com/aws/aws-sdk-cpp/commit/b102aaf5693c4165c84b616ab9ffb9edfb705239.diff"; + sha256 = "sha256-38QBo3MEFpyHPb8jZEURRPkoeu4DqWhVeErJayiHKF0="; + }); # Builds in 2+h with 2 cores, and ~10m with a big-parallel builder. requiredSystemFeatures = [ "big-parallel" ]; |