2023-03-30 22:05:00 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2023-01-11 07:51:40 +00:00
|
|
|
pname = "psol";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "1.13.35.2"; # Latest stable, 2018-02-05
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dl.google.com/dl/page-speed/psol/${version}-x64.tar.gz";
|
|
|
|
hash = "sha256-3zujyPxU4ThF0KHap6bj2YMSbCORKFG7+Lo1vmRqQ08=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
mv include lib -t $out
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PageSpeed Optimization Libraries";
|
|
|
|
homepage = "https://developers.google.com/speed/pagespeed/psol";
|
|
|
|
license = licenses.asl20;
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
# 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.
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|