clickhouse: compress src to not exceed hydra limit (#236060)

authored by Yureka and committed by GitHub c282d8e5 88da641c

+16 -2
+16 -2
pkgs/servers/clickhouse/default.nix
··· 21 21 pname = "clickhouse"; 22 22 version = "23.3.2.37"; 23 23 24 - src = fetchFromGitHub { 24 + src = fetchFromGitHub rec { 25 25 owner = "ClickHouse"; 26 26 repo = "ClickHouse"; 27 27 rev = "v${version}-lts"; 28 28 fetchSubmodules = true; 29 - sha256 = "sha256-t6aW3wYmD4UajVaUhIE96wCqr6JbOtoBt910nD9IVsk="; 29 + hash = "sha256-G/5KZ4vd9w5g0yB6bzyM8VX3l32Di+a6Ll87NK3GOrg="; 30 + name = "clickhouse-${rev}.tar.gz"; 31 + postFetch = '' 32 + # compress to not exceed the 4GB output limit 33 + # try to make a deterministic tarball 34 + tar -I 'gzip -n' \ 35 + --sort=name \ 36 + --mtime=1970-01-01 \ 37 + --owner=root --group=root \ 38 + --numeric-owner --mode=go=rX,u+rw,a-s \ 39 + --transform='s@^@source/@S' \ 40 + -cf temp -C "$out" . 41 + rm -r "$out" 42 + mv temp "$out" 43 + ''; 30 44 }; 31 45 32 46 strictDeps = true;