{ packageOverrides = pkgs: { rPackages = pkgs.rPackages.override { overrides = { png = pkgs.rPackages.png.overrideDerivation (old: { nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.libpng.dev ]; }); }; }; }; }