mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 12:23:55 +00:00
nodePackages.readability-cli: do not patch a deno shebang line
This commit is contained in:
parent
f68c35790e
commit
ee2571e8fe
@ -445,6 +445,18 @@ 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 = stdenv.mkDerivation {
|
||||
src = oldAttrs.src;
|
||||
name = oldAttrs.name + "-src";
|
||||
patchPhase = "chmod a-x readable.ts";
|
||||
installPhase = ''cp -r . "$out"'';
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = with pkgs; [
|
||||
pixman
|
||||
|
Loading…
Reference in New Issue
Block a user