mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-13 08:23:25 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
31 lines
865 B
Nix
31 lines
865 B
Nix
{ lib, stdenvNoCC, fetchurl }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "psol";
|
|
version = "1.13.35.2"; # Latest stable, 2018-02-05
|
|
|
|
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
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|