33 stdenv ,
44 fetchFromGitHub ,
55 buildNpmPackage ,
6- nodejs_18 ,
6+ systemdLibs ,
77 coreutils ,
88 ffmpeg-headless ,
99 imagemagick_light ,
@@ -26,17 +26,15 @@ assert
2626 ( ! withFirefox && ! withChromium ) -> throw "Either `withFirefox` or `withChromium` must be enabled." ;
2727buildNpmPackage rec {
2828 pname = "sitespeed-io" ;
29- version = "34.0.1 " ;
29+ version = "37.3.2 " ;
3030
3131 src = fetchFromGitHub {
3232 owner = "sitespeedio" ;
3333 repo = "sitespeed.io" ;
34- rev = "v${ version } " ;
35- hash = "sha256-yC/TlAJa71hbPYYuqPV+k3syGuo/VhnNjXmmxh47ySQ =" ;
34+ tag = "v${ version } " ;
35+ hash = "sha256-sLRwNWAP83Lcnz39AkPc//NIGwRf70UqritTVJqMiws =" ;
3636 } ;
3737
38- nodejs = nodejs_18 ;
39-
4038 postPatch = ''
4139 ln -s npm-shrinkwrap.json package-lock.json
4240 '' ;
@@ -46,9 +44,13 @@ buildNpmPackage rec {
4644 GECKODRIVER_SKIP_DOWNLOAD = true ;
4745 EDGEDRIVER_SKIP_DOWNLOAD = true ;
4846
47+ buildInputs = [
48+ systemdLibs
49+ ] ;
50+
4951 dontNpmBuild = true ;
5052 npmInstallFlags = [ "--omit=dev" ] ;
51- npmDepsHash = "sha256-Q0cWxV5OOaG8Z3aM2j0HtD1e9yPFVDSRcMKBf/yscv4 =" ;
53+ npmDepsHash = "sha256-mDcvAvZgTJ4vEHb6ZAtZrBnmHglf1i4Yipl3bxIkw0s =" ;
5254
5355 postInstall = ''
5456 mv $out/bin/sitespeed{.,-}io
@@ -71,7 +73,7 @@ buildNpmPackage rec {
7173 ''
7274 wrapProgram $out/bin/sitespeed-io \
7375 --set PATH ${
74- lib . makeBinPath ( [
76+ lib . makeBinPath [
7577 ( python3 . withPackages ( p : [
7678 p . numpy
7779 p . opencv4
@@ -82,7 +84,7 @@ buildNpmPackage rec {
8284 xorg . xorgserver
8385 procps
8486 coreutils
85- ] )
87+ ]
8688 } \
8789 ${ lib . optionalString withChromium "--add-flags '${ chromiumArgs } '" } \
8890 ${ lib . optionalString withFirefox "--add-flags '${ firefoxArgs } '" } \
@@ -94,11 +96,11 @@ buildNpmPackage rec {
9496 updateScript = nix-update-script { } ;
9597 } ;
9698
97- meta = with lib ; {
99+ meta = {
98100 description = "Open source tool that helps you monitor, analyze and optimize your website speed and performance" ;
99101 homepage = "https://sitespeed.io" ;
100- license = licenses . mit ;
101- maintainers = with maintainers ; [ misterio77 ] ;
102+ license = lib . licenses . mit ;
103+ maintainers = with lib . maintainers ; [ misterio77 ] ;
102104 platforms = lib . unique ( geckodriver . meta . platforms ++ chromedriver . meta . platforms ) ;
103105 mainProgram = "sitespeed-io" ;
104106 } ;
0 commit comments