maybe this will fix build
This commit is contained in:
parent
cb84d1a647
commit
761714608c
20
default.nix
20
default.nix
@ -1,4 +1,4 @@
|
||||
{ pkgs, google-chrome, symlinkJoin, stdenv, elmPackages, libjpeg, optipng, ... }:
|
||||
{ pkgs, google-chrome, symlinkJoin, stdenv, elmPackages, libjpeg, optipng, pngquant, ... }:
|
||||
|
||||
let
|
||||
pnpm2nix = pkgs.callPackage (builtins.fetchGit {
|
||||
@ -41,12 +41,20 @@ let
|
||||
chmod +x $local_chromium/chrome-linux/chrome
|
||||
'';
|
||||
}));
|
||||
imagemin-pngquant = (drv: drv.overrideAttrs(oldAttrs: {
|
||||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.libpng ];
|
||||
}));
|
||||
pngquant-bin = (drv: drv.overrideAttrs(oldAttrs: {
|
||||
preBuild = ''
|
||||
mkdir -p $HOME/node_modules/pngquant-bin/vendor
|
||||
ln -s ${pngquant}/bin/pngquant $HOME/node_modules/pngquant-bin/vendor/pngquant
|
||||
'';
|
||||
}));
|
||||
|
||||
gifsicle = (drv: drv.overrideAttrs(oldAttrs: {
|
||||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.autoconf pkgs.automake ];
|
||||
}));
|
||||
jpegtran = (drv: drv.overrideAttrs(oldAttrs: {
|
||||
buildInputs = [ libjpeg ];
|
||||
}));
|
||||
|
||||
optipng = (drv: drv.overrideAttrs(oldAttrs: {
|
||||
buildInputs = [ optipng ];
|
||||
}));
|
||||
@ -56,6 +64,10 @@ let
|
||||
ln -s ${optipng}/bin/optipng $HOME/node_modules/optipng-bin/vendor/optipng
|
||||
'';
|
||||
}));
|
||||
|
||||
jpegtran = (drv: drv.overrideAttrs(oldAttrs: {
|
||||
buildInputs = [ libjpeg ];
|
||||
}));
|
||||
jpegtran-bin = (drv: drv.overrideAttrs(oldAttrs: {
|
||||
preBuild = ''
|
||||
mkdir -p $HOME/node_modules/jpegtran-bin/vendor
|
||||
|
Loading…
Reference in New Issue
Block a user