best practices: use builtins.path for local source

This commit is contained in:
2024-11-09 16:36:25 -06:00
parent 120d485f28
commit a9ef403cea
2 changed files with 12 additions and 3 deletions

View File

@@ -41,7 +41,10 @@ buildNpmPackage (
patches = [
(substituteAll {
src = ./code.patch;
src = builtins.path {
path = ./code.patch;
name = "${src.name}-patch";
};
inherit ffmpeg;
filepicker = lib.getExe filepicker;
})