Set up nix for static builds

This commit is contained in:
heyarne 2022-02-10 18:57:11 +01:00
commit 7d35337708
3 changed files with 22 additions and 1 deletions

View file

@ -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";
};
};
}