Loading pkgs/by-name/si/sitespeed-io/package.nix +14 −12 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ stdenv, fetchFromGitHub, buildNpmPackage, nodejs_18, systemdLibs, coreutils, ffmpeg-headless, imagemagick_light, Loading @@ -26,17 +26,15 @@ assert (!withFirefox && !withChromium) -> throw "Either `withFirefox` or `withChromium` must be enabled."; buildNpmPackage rec { pname = "sitespeed-io"; version = "34.0.1"; version = "37.3.2"; src = fetchFromGitHub { owner = "sitespeedio"; repo = "sitespeed.io"; rev = "v${version}"; hash = "sha256-yC/TlAJa71hbPYYuqPV+k3syGuo/VhnNjXmmxh47ySQ="; tag = "v${version}"; hash = "sha256-sLRwNWAP83Lcnz39AkPc//NIGwRf70UqritTVJqMiws="; }; nodejs = nodejs_18; postPatch = '' ln -s npm-shrinkwrap.json package-lock.json ''; Loading @@ -46,9 +44,13 @@ buildNpmPackage rec { GECKODRIVER_SKIP_DOWNLOAD = true; EDGEDRIVER_SKIP_DOWNLOAD = true; buildInputs = [ systemdLibs ]; dontNpmBuild = true; npmInstallFlags = [ "--omit=dev" ]; npmDepsHash = "sha256-Q0cWxV5OOaG8Z3aM2j0HtD1e9yPFVDSRcMKBf/yscv4="; npmDepsHash = "sha256-mDcvAvZgTJ4vEHb6ZAtZrBnmHglf1i4Yipl3bxIkw0s="; postInstall = '' mv $out/bin/sitespeed{.,-}io Loading @@ -71,7 +73,7 @@ buildNpmPackage rec { '' wrapProgram $out/bin/sitespeed-io \ --set PATH ${ lib.makeBinPath ([ lib.makeBinPath [ (python3.withPackages (p: [ p.numpy p.opencv4 Loading @@ -82,7 +84,7 @@ buildNpmPackage rec { xorg.xorgserver procps coreutils ]) ] } \ ${lib.optionalString withChromium "--add-flags '${chromiumArgs}'"} \ ${lib.optionalString withFirefox "--add-flags '${firefoxArgs}'"} \ Loading @@ -94,11 +96,11 @@ buildNpmPackage rec { updateScript = nix-update-script { }; }; meta = with lib; { meta = { description = "Open source tool that helps you monitor, analyze and optimize your website speed and performance"; homepage = "https://sitespeed.io"; license = licenses.mit; maintainers = with maintainers; [ misterio77 ]; license = lib.licenses.mit; maintainers = with lib.maintainers; [ misterio77 ]; platforms = lib.unique (geckodriver.meta.platforms ++ chromedriver.meta.platforms); mainProgram = "sitespeed-io"; }; Loading Loading
pkgs/by-name/si/sitespeed-io/package.nix +14 −12 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ stdenv, fetchFromGitHub, buildNpmPackage, nodejs_18, systemdLibs, coreutils, ffmpeg-headless, imagemagick_light, Loading @@ -26,17 +26,15 @@ assert (!withFirefox && !withChromium) -> throw "Either `withFirefox` or `withChromium` must be enabled."; buildNpmPackage rec { pname = "sitespeed-io"; version = "34.0.1"; version = "37.3.2"; src = fetchFromGitHub { owner = "sitespeedio"; repo = "sitespeed.io"; rev = "v${version}"; hash = "sha256-yC/TlAJa71hbPYYuqPV+k3syGuo/VhnNjXmmxh47ySQ="; tag = "v${version}"; hash = "sha256-sLRwNWAP83Lcnz39AkPc//NIGwRf70UqritTVJqMiws="; }; nodejs = nodejs_18; postPatch = '' ln -s npm-shrinkwrap.json package-lock.json ''; Loading @@ -46,9 +44,13 @@ buildNpmPackage rec { GECKODRIVER_SKIP_DOWNLOAD = true; EDGEDRIVER_SKIP_DOWNLOAD = true; buildInputs = [ systemdLibs ]; dontNpmBuild = true; npmInstallFlags = [ "--omit=dev" ]; npmDepsHash = "sha256-Q0cWxV5OOaG8Z3aM2j0HtD1e9yPFVDSRcMKBf/yscv4="; npmDepsHash = "sha256-mDcvAvZgTJ4vEHb6ZAtZrBnmHglf1i4Yipl3bxIkw0s="; postInstall = '' mv $out/bin/sitespeed{.,-}io Loading @@ -71,7 +73,7 @@ buildNpmPackage rec { '' wrapProgram $out/bin/sitespeed-io \ --set PATH ${ lib.makeBinPath ([ lib.makeBinPath [ (python3.withPackages (p: [ p.numpy p.opencv4 Loading @@ -82,7 +84,7 @@ buildNpmPackage rec { xorg.xorgserver procps coreutils ]) ] } \ ${lib.optionalString withChromium "--add-flags '${chromiumArgs}'"} \ ${lib.optionalString withFirefox "--add-flags '${firefoxArgs}'"} \ Loading @@ -94,11 +96,11 @@ buildNpmPackage rec { updateScript = nix-update-script { }; }; meta = with lib; { meta = { description = "Open source tool that helps you monitor, analyze and optimize your website speed and performance"; homepage = "https://sitespeed.io"; license = licenses.mit; maintainers = with maintainers; [ misterio77 ]; license = lib.licenses.mit; maintainers = with lib.maintainers; [ misterio77 ]; platforms = lib.unique (geckodriver.meta.platforms ++ chromedriver.meta.platforms); mainProgram = "sitespeed-io"; }; Loading