Set up nix for static builds
This commit is contained in:
parent
9b177cbd6d
commit
7d35337708
3 changed files with 22 additions and 1 deletions
|
|
@ -12,8 +12,12 @@
|
|||
buildInputs = with pkgs; [
|
||||
go
|
||||
gopls
|
||||
stdenv
|
||||
glibc.static
|
||||
];
|
||||
# LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
|
||||
|
||||
CFLAGS="-I${pkgs.glibc.dev}/include";
|
||||
LDFLAGS="-L${pkgs.glibc}/lib";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue