git.iko.soy/typeable/nixpkgs
on master help sign in
gn: Switch to fetchzip for apple_apsl directory

The tarball from upstream seems to be generated on the fly, so the output is not deterministic and using fetchzip makes this more reliable as we have a recursively hashed output path without any of the non-determinisms in tarballs. Unfortunately, the build still fails on NixOS systems, because we need a few more stuff in the build tree. Signed-off-by: aszlig <aszlig@nix.build> Cc: @matthewbauer, @stesie

commitac61ae50b7b47dfae92ff921dab0774554e7df9e authoraszlig <aszlig@nix.build> dateWed 25 Apr 2018, 14:54 (9 years ago) parentca7d983
1 file changed+4−3
pkgs/development/tools/build-managers/gn/default.nix+4−3
pkgs/development/tools/build-managers/gn/default.nix+4−3
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchgit, fetchurl, fetchpatch
1+{ stdenv, lib, fetchgit, fetchzip, fetchpatch
22, libevent, ninja, python, darwin }:
33
44let
@@ -28,9 +28,10 @@ let
2828 rev = "585ec31ea716f08233a815e680fc0d4699843938";
2929 sha256 = "0csn1cza66851nmxxiw42smsm3422mx67vcyykwn0a71lcjng6rc";
3030 };
31− "third_party/apple_apsl" = fetchurl {
31+ "third_party/apple_apsl" = fetchzip {
3232 url = "https://chromium.googlesource.com/chromium/src/third_party/+archive/8e6ccb8c74db6dfa15dd21401ace3ac96c054cf7/apple_apsl.tar.gz";
33− sha256 = "0sc7b7zdw7f9piyyijl7xq3v1fzflqlck1apwm8kvgdhkyz3l63k";
33+ sha256 = "1vgcg741lwz84kdy0qc5wn9dxx3j9zh6a9d185fpygdsipwikqv8";
34+ stripRoot = false;
3435 };
3536 };
3637