Merge pull request #202100 from mstarzyk/readability-cli

nodePackages.readability-cli: fix build
This commit is contained in:
Mario Rodas 2023-01-12 02:39:34 -05:00 committed by GitHub
commit 60e28ed24b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];