trying to wrap program

This commit is contained in:
2025-01-07 21:18:08 +00:00
parent 6683566b3c
commit f1e86773f7
2 changed files with 12 additions and 5 deletions

View File

@@ -8,7 +8,8 @@
(import "${fetchTree gomod2nix.locked}/overlay.nix")
];
}
)
),
lib
}:
pkgs.buildGoApplication {
@@ -18,4 +19,13 @@ pkgs.buildGoApplication {
src = ./.;
modules = ./gomod2nix.toml;
doCheck = false;
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/p2p-rendering-computation \
--set PATH $out/bin \
--set P2PRC $out/bin
'';
}