Loading pkgs/tools/networking/phantomsocks/default.nix +12 −0 Original line number Diff line number Diff line { lib , buildGoModule , fetchFromGitHub , stdenv , libpcap # Cann't be build with both pcap and rawsocket tags , withPcap ? (!stdenv.isLinux && !withRawsocket) , withRawsocket ? (stdenv.isLinux && !withPcap) }: buildGoModule rec { Loading @@ -16,6 +21,13 @@ buildGoModule rec { vendorHash = "sha256-c0NQfZuMMWz1ASwFBcpMNjxZwXLo++gMYBiNgvT8ZLQ="; ldflags = [ "-s" "-w" ]; buildInputs = lib.optional withPcap libpcap; tags = lib.optional withPcap "pcap" ++ lib.optional withRawsocket "rawsocket"; meta = with lib;{ homepage = "https://github.com/macronut/phantomsocks"; description = "A cross-platform proxy client/server for Linux/Windows/macOS"; Loading Loading
pkgs/tools/networking/phantomsocks/default.nix +12 −0 Original line number Diff line number Diff line { lib , buildGoModule , fetchFromGitHub , stdenv , libpcap # Cann't be build with both pcap and rawsocket tags , withPcap ? (!stdenv.isLinux && !withRawsocket) , withRawsocket ? (stdenv.isLinux && !withPcap) }: buildGoModule rec { Loading @@ -16,6 +21,13 @@ buildGoModule rec { vendorHash = "sha256-c0NQfZuMMWz1ASwFBcpMNjxZwXLo++gMYBiNgvT8ZLQ="; ldflags = [ "-s" "-w" ]; buildInputs = lib.optional withPcap libpcap; tags = lib.optional withPcap "pcap" ++ lib.optional withRawsocket "rawsocket"; meta = with lib;{ homepage = "https://github.com/macronut/phantomsocks"; description = "A cross-platform proxy client/server for Linux/Windows/macOS"; Loading