@@ -59,14 +59,29 @@ let
5959 rev = "a059e7404a6db799f4da0ad696e65ae9c854b4b0";
6060 in
6161 {
62− version = "${branchName}-${lib.substring 0 8 rev}";
62+ version = "${branchName}-${lib.substring 0 7 rev}";
6363
6464 src = fetchgit {
6565 url = "https://github.com/qt/qtwebengine.git";
66− sha256 = "19l1i4sk3pvnwbvz5s97jchqawfz8k1xmjza29bgvkp1zz96r0jx";
66+ sha256 = "1vdgxfbmx4z4qrm2g61dl64gqn3fv5f83jwpp7h1gyfx5z2qvfmv";
6767 inherit rev branchName;
6868 fetchSubmodules = true;
6969 leaveDotGit = true;
70+ name = "qtwebengine-${substring 0 7 rev}.tar.gz";
71+ postFetch = ''
72+ # remove submodule .git directory
73+ rm -rf $out/src/3rdparty/.git
74+
75+ # compress to not exceed the 2GB output limit
76+ mv $out source
77+ # try to make a deterministic tarball
78+ tar -I 'gzip -n' \
79+ --sort name \
80+ --mtime 1970-01-01 \
81+ --owner=root --group=root \
82+ --numeric-owner --mode=go=rX,u+rw,a-s \
83+ -cf $out source
84+ '';
7085 };
7186 };
7287 };