nodePackages.readability-cli: use srcOnly (thanks to @marsam)

This commit is contained in:
Maciek Starzyk 2022-11-21 09:44:20 +01:00
parent ee2571e8fe
commit dfac3e29cb

View file

@ -450,11 +450,10 @@ final: prev: {
#
# Need to wrap the source, instead of patching in patchPhase, because
# buildNodePackage only unpacks sources in the installPhase.
src = stdenv.mkDerivation {
src = pkgs.srcOnly {
src = oldAttrs.src;
name = oldAttrs.name + "-src";
name = oldAttrs.name;
patchPhase = "chmod a-x readable.ts";
installPhase = ''cp -r . "$out"'';
};
nativeBuildInputs = [ pkgs.pkg-config ];