feat: link against musl
This commit is contained in:
parent
5d08d1602a
commit
5191b3e42b
1 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
with pkgs;
|
||||
let
|
||||
version = "0.0.1";
|
||||
version = "0.0.2";
|
||||
deps = [ ];
|
||||
nativeDeps = [ ];
|
||||
in
|
||||
|
@ -10,15 +10,18 @@ pkgs.buildGo119Module {
|
|||
inherit version;
|
||||
src = ./.;
|
||||
buildInputs = [
|
||||
stdenv glibc.static
|
||||
stdenv
|
||||
] ++deps;
|
||||
nativeBuildInputs = [
|
||||
musl
|
||||
] ++nativeDeps;
|
||||
tags = [ ];
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-linkmode external"
|
||||
"-extldflags -static"
|
||||
"-extldflags '-static -L${musl}/lib'"
|
||||
];
|
||||
|
||||
allowGoReference = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue