···11+{ fetchzip, stdenv }:
22+{ version, sha256 }:
33+{ inherit version; } // fetchzip {
44+ inherit sha256;
55+ name = "psol-${version}";
66+ url = "https://dl.google.com/dl/page-speed/psol/${version}.tar.gz";
77+88+ meta = {
99+ description = "PageSpeed Optimization Libraries";
1010+ homepage = "https://developers.google.com/speed/pagespeed/psol";
1111+ license = stdenv.lib.licenses.asl20;
1212+ # WARNING: This only works with Linux because the pre-built PSOL binary is only supplied for Linux.
1313+ # TODO: Build PSOL from source to support more platforms.
1414+ platforms = stdenv.lib.platforms.linux;
1515+ };
1616+}