tcp-stream-proxy/package.nix
Garionion 441b3d0fb5
Some checks reported errors
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build was killed
feat: link against musl
2023-01-29 00:05:41 +01:00

35 lines
716 B
Nix

{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
version = "0.0.2";
deps = [ ];
nativeDeps = [ ];
in
pkgs.buildGo119Module {
pname = "tcp-stream-proxy";
inherit version;
src = ./.;
buildInputs = [
stdenv
] ++deps;
nativeBuildInputs = [
musl
] ++nativeDeps;
tags = [ ];
CGO_ENABLED = 0;
ldflags = [
"-s" "-w"
"-linkmode external"
"-extldflags '-static -L${musl}/lib'"
];
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";
};
}