13 modRoot = "wireguard-go-rs/libwg";
15 vendorHash = "sha256-uyAzY1hoCtS7da3wtjxTGx5wBb9c9m749TzihVr94rc=";
17 # XXX: hack to make the ar archive go to the correct place
18 # This is necessary because passing `-o ...` to `ldflags` does not work
19 # (this doesn't get communicated everywhere in the chain, apparently, so
20 # `go` complains that it can't find an `a.out` file).
21 GOBIN = "${placeholder "out"}/lib";
23 subPackages = [ "." ];
24 ldflags = [ "-s" "-w" "-buildmode=c-archive" ];
28 mv $out/lib/libwg{,.a}
32 description = "Tiny wrapper around wireguard-go";
33 homepage = "https://github.com/mullvad/mullvadvpn-app/tree/main/wireguard-go-rs/libwg";
34 license = licenses.gpl3Only;
35 maintainers = with maintainers; [ cole-h ];