aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 9c402bc..49ef08f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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 {