Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 34 lines 872 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "psol"; 9 version = "1.13.35.2"; # Latest stable, 2018-02-05 10 11 src = fetchurl { 12 url = "https://dl.google.com/dl/page-speed/psol/${version}-x64.tar.gz"; 13 hash = "sha256-3zujyPxU4ThF0KHap6bj2YMSbCORKFG7+Lo1vmRqQ08="; 14 }; 15 16 installPhase = '' 17 runHook preInstall 18 19 mkdir -p $out 20 mv include lib -t $out 21 22 runHook postInstall 23 ''; 24 25 meta = with lib; { 26 description = "PageSpeed Optimization Libraries"; 27 homepage = "https://developers.google.com/speed/pagespeed/psol"; 28 license = licenses.asl20; 29 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 30 # WARNING: This only works with Linux because the pre-built PSOL binary is only supplied for Linux. 31 # TODO: Build PSOL from source to support more platforms. 32 platforms = platforms.linux; 33 }; 34}