Skip to content

Commit 879f202

Browse files
committed
feat(voyager): use symlinkJoin instead of linkFarm for plugins and modules
1 parent 3f745b0 commit 879f202

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

voyager/voyager.nix

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,15 @@
3131
let
3232
builder =
3333
release:
34-
pkgs.linkFarm "voyager-modules-plugins" (
35-
pkgs.lib.mapAttrsToList (name: path: {
36-
inherit name;
37-
path = if release then path.release else path;
38-
}) (builtins.foldl' (acc: p: acc // (crane.buildWorkspaceMember p { })) { } voy-modules-list)
39-
);
34+
pkgs.symlinkJoin {
35+
name = "voyager-modules-plugins";
36+
paths = pkgs.lib.mapAttrsToList (_: path: if release then path.release else path) (
37+
builtins.foldl' (acc: p: acc // (crane.buildWorkspaceMember p { })) { } voy-modules-list
38+
);
39+
postBuild = ''
40+
rm $out/lib -r
41+
'';
42+
};
4043
in
4144
(builder false)
4245
// {

0 commit comments

Comments
 (0)