14 sourceRoot = "${mullvad.src.name}/wireguard/libwg";
16 vendorHash = "sha256-2hb6+OHifm/oAgXCiYf+nwtNDDZNWR6lAbLSGT3AG0I=";
18 # XXX: hack to make the ar archive go to the correct place
19 # This is necessary because passing `-o ...` to `ldflags` does not work
20 # (this doesn't get communicated everywhere in the chain, apparently, so
21 # `go` complains that it can't find an `a.out` file).
22 GOBIN = "${placeholder "out"}/lib";
23 ldflags = [ "-s" "-w" "-buildmode=c-archive" ];
29 mv $out/lib/libwg{,.a}
33 description = "A tiny wrapper around wireguard-go";
34 homepage = "https://github.com/mullvad/mullvadvpn-app/tree/main/wireguard/libwg";
35 license = licenses.gpl3Only;
36 maintainers = with maintainers; [ cole-h ];