nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 16 lines 588 B view raw
1{ fetchzip, lib }: 2{ version, sha256 }: 3{ inherit version; } // fetchzip { 4 inherit sha256; 5 name = "psol-${version}"; 6 url = "https://dl.google.com/dl/page-speed/psol/${version}-x64.tar.gz"; 7 8 meta = { 9 description = "PageSpeed Optimization Libraries"; 10 homepage = "https://developers.google.com/speed/pagespeed/psol"; 11 license = lib.licenses.asl20; 12 # WARNING: This only works with Linux because the pre-built PSOL binary is only supplied for Linux. 13 # TODO: Build PSOL from source to support more platforms. 14 platforms = lib.platforms.linux; 15 }; 16}