tcp-stream-proxy/package.nix

35 lines
716 B
Nix
Raw Normal View History

2023-01-28 20:30:10 +01:00
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
2023-01-28 20:55:52 +01:00
version = "0.0.2";
2023-01-28 20:30:10 +01:00
deps = [ ];
nativeDeps = [ ];
in
pkgs.buildGo119Module {
pname = "tcp-stream-proxy";
inherit version;
src = ./.;
buildInputs = [
2023-01-28 20:55:52 +01:00
stdenv
2023-01-28 20:30:10 +01:00
] ++deps;
nativeBuildInputs = [
2023-01-28 20:55:52 +01:00
musl
2023-01-28 20:30:10 +01:00
] ++nativeDeps;
tags = [ ];
2023-01-28 20:55:52 +01:00
CGO_ENABLED = 0;
2023-01-28 20:30:10 +01:00
ldflags = [
"-s" "-w"
"-linkmode external"
2023-01-28 20:55:52 +01:00
"-extldflags '-static -L${musl}/lib'"
2023-01-28 20:30:10 +01:00
];
allowGoReference = false;
#vendorSha256 = lib.fakeSha256;
vendorSha256 = "sha256-YFKyN+oV9MrjcvfehsGKgvAPvnHlOBGpSQpVdrOvUog=";
meta = {
description = "A little Proxy which forwards TCP streams";
homepage = "https://git.entr0py.de/garionion/tcp-stream-proxy";
};
}