diff options
author | Alex Auvolat <alex@adnab.me> | 2023-03-17 17:45:41 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-03-17 17:45:41 +0100 |
commit | 86f7198cb4ef6d9076e89bfc6c7f4c7f5cc9f8ee (patch) | |
tree | bd483c4e90eeaf24f07ad838836966e588327616 | |
parent | 7971f795d31467f693596d582aa85e5065434736 (diff) | |
download | wgautomesh-0.1.0.tar.gz wgautomesh-0.1.0.zip |
statically link nix binaryv0.1.0
-rw-r--r-- | flake.nix | 7 |
1 files changed, 7 insertions, 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 { |