phantomsocks: fix build tag
Co-Authored-By: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
884ffbd847
commit
211f15a271
|
@ -1,6 +1,11 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, stdenv
|
||||||
|
, libpcap
|
||||||
|
# Cann't be build with both pcap and rawsocket tags
|
||||||
|
, withPcap ? (!stdenv.isLinux && !withRawsocket)
|
||||||
|
, withRawsocket ? (stdenv.isLinux && !withPcap)
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
|
@ -16,6 +21,13 @@ buildGoModule rec {
|
||||||
|
|
||||||
vendorHash = "sha256-c0NQfZuMMWz1ASwFBcpMNjxZwXLo++gMYBiNgvT8ZLQ=";
|
vendorHash = "sha256-c0NQfZuMMWz1ASwFBcpMNjxZwXLo++gMYBiNgvT8ZLQ=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s" "-w"
|
||||||
|
];
|
||||||
|
buildInputs = lib.optional withPcap libpcap;
|
||||||
|
tags = lib.optional withPcap "pcap"
|
||||||
|
++ lib.optional withRawsocket "rawsocket";
|
||||||
|
|
||||||
meta = with lib;{
|
meta = with lib;{
|
||||||
homepage = "https://github.com/macronut/phantomsocks";
|
homepage = "https://github.com/macronut/phantomsocks";
|
||||||
description = "A cross-platform proxy client/server for Linux/Windows/macOS";
|
description = "A cross-platform proxy client/server for Linux/Windows/macOS";
|
||||||
|
|
Loading…
Reference in a new issue