diff --git a/flake/pkgs/by-name/prettier-plugin-svelte/package.nix b/flake/pkgs/by-name/prettier-plugin-svelte/package.nix index da545c55..69cce6df 100644 --- a/flake/pkgs/by-name/prettier-plugin-svelte/package.nix +++ b/flake/pkgs/by-name/prettier-plugin-svelte/package.nix @@ -16,4 +16,12 @@ in }; npmDepsHash = "sha256-XVyLW0XDCvZCZxu8g1fP7fRfeU3Hz81o5FCi/i4BKQw="; + + # FIXME: this probably also copies over build dependencies. + # Look at how other prettier plugins in nixpkgs do things. I couldn't get it to work + # and am out of time so good luck :) + preInstall = '' + mkdir -p $out/lib + cp -r node_modules $out + ''; })