2021-02-05 17:12:51 +00:00
|
|
|
{ fetchzip, lib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
{ version, sha256 }:
|
|
|
|
{ inherit version; } // fetchzip {
|
|
|
|
inherit sha256;
|
|
|
|
name = "psol-${version}";
|
|
|
|
url = "https://dl.google.com/dl/page-speed/psol/${version}-x64.tar.gz";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "PageSpeed Optimization Libraries";
|
|
|
|
homepage = "https://developers.google.com/speed/pagespeed/psol";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# WARNING: This only works with Linux because the pre-built PSOL binary is only supplied for Linux.
|
|
|
|
# TODO: Build PSOL from source to support more platforms.
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|