From bb3c2ae834b4dea559f6ec95e55510a0a8d6f463 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Mon, 13 Apr 2026 21:12:27 +0200 Subject: [PATCH] package/prettier-svelte: fix missing deps --- flake/pkgs/by-name/prettier-plugin-svelte/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + ''; })