13 sourceRoot = "${mullvad.src.name}/wireguard/libwg";
15 vendorHash = "sha256-gaU3na3sjzM6lvmsGRkuGtV2AHvkl6IgzmyGx3R5ZpM=";
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";
22 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/libwg";
34 license = licenses.gpl3Only;
35 maintainers = with maintainers; [ cole-h ];