tcp-stream-proxy/package.nix

32 lines
684 B
Nix
Raw Normal View History

2023-01-28 20:30:10 +01:00
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
version = "0.0.1";
deps = [ ];
nativeDeps = [ ];
in
pkgs.buildGo119Module {
pname = "tcp-stream-proxy";
inherit version;
src = ./.;
buildInputs = [
stdenv glibc.static
] ++deps;
nativeBuildInputs = [
] ++nativeDeps;
tags = [ ];
ldflags = [
"-s" "-w"
"-linkmode external"
"-extldflags -static"
];
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";
};
}