Merge pull request #208164 from SuperSandro2000/psol

psol: combine into one file
This commit is contained in:
Anderson Torres 2022-12-29 01:35:27 -03:00 committed by GitHub
commit cb00684c27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 20 deletions

View file

@ -1,5 +1,19 @@
{ callPackage }:
callPackage ./generic.nix {} {
{ fetchzip, lib }:
fetchzip rec {
pname = "psol";
version = "1.13.35.2"; # Latest stable, 2018-02-05
sha256 = "0xi2srf9gx0x2sz9r45zb35k2n0iv457if1lqzvbanls3f935cmr";
url = "https://dl.google.com/dl/page-speed/psol/${version}-x64.tar.gz";
sha256 = "0xi2srf9gx0x2sz9r45zb35k2n0iv457if1lqzvbanls3f935cmr";
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;
};
}

View file

@ -1,17 +0,0 @@
{ fetchzip, lib }:
{ 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";
license = lib.licenses.asl20;
sourceProvenance = with lib.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 = lib.platforms.linux;
};
}