statically link nix binary
This commit is contained in:
parent
7971f795d3
commit
86f7198cb4
1 changed files with 7 additions and 0 deletions
|
@ -21,6 +21,13 @@
|
|||
let
|
||||
packageSet = pkgs.rustBuilder.makePackageSet ({
|
||||
inherit packageFun rustVersion;
|
||||
|
||||
# Config to build static binaries
|
||||
target = "x86_64-unknown-linux-musl";
|
||||
codegenOpts = {
|
||||
"x86_64-unknown-linux-musl" =
|
||||
[ "target-feature=+crt-static" "link-arg=-static-pie" ];
|
||||
};
|
||||
} // args);
|
||||
in
|
||||
packageSet.workspace.wgautomesh {
|
||||
|
|
Loading…
Reference in a new issue