Merge pull request #202100 from mstarzyk/readability-cli
nodePackages.readability-cli: fix build
This commit is contained in:
commit
60e28ed24b
|
@ -440,6 +440,26 @@ final: prev: {
|
|||
'';
|
||||
};
|
||||
|
||||
readability-cli = prev.readability-cli.override (oldAttrs: {
|
||||
# Wrap src to fix this build error:
|
||||
# > readability-cli/readable.ts: unsupported interpreter directive "#!/usr/bin/env -S deno..."
|
||||
#
|
||||
# Need to wrap the source, instead of patching in patchPhase, because
|
||||
# buildNodePackage only unpacks sources in the installPhase.
|
||||
src = pkgs.srcOnly {
|
||||
src = oldAttrs.src;
|
||||
name = oldAttrs.name;
|
||||
patchPhase = "chmod a-x readable.ts";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = with pkgs; [
|
||||
pixman
|
||||
cairo
|
||||
pango
|
||||
];
|
||||
});
|
||||
|
||||
reveal-md = prev.reveal-md.override (
|
||||
lib.optionalAttrs (!stdenv.isDarwin) {
|
||||
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
||||
|
|
Loading…
Reference in a new issue