3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/ghostunnel/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1 KiB
Nix
Raw Normal View History

{ stdenv
, buildGoModule
2021-08-02 08:18:47 +01:00
, fetchFromGitHub
, lib
, nixosTests
}:
buildGoModule rec {
pname = "ghostunnel";
2022-06-26 00:19:16 +01:00
version = "1.6.1";
src = fetchFromGitHub {
owner = "ghostunnel";
repo = "ghostunnel";
rev = "v${version}";
2022-06-26 00:19:16 +01:00
sha256 = "sha256-VameENcHZ6AttV0D8ekPGGFoMHTiTXAY2FxK/Nxwjmk=";
};
2022-06-26 00:19:16 +01:00
vendorSha256 = null;
2021-08-01 00:03:57 +01:00
deleteVendor = true;
# The certstore directory isn't recognized as a subpackage, but is when moved
# into the vendor directory.
postUnpack = ''
mkdir -p $sourceRoot/vendor/ghostunnel
mv $sourceRoot/certstore $sourceRoot/vendor/ghostunnel/
'';
2021-08-02 08:18:47 +01:00
passthru.tests = {
nixos = nixosTests.ghostunnel;
podman = nixosTests.podman-tls-ghostunnel;
};
meta = with lib; {
broken = stdenv.isDarwin;
description = "A simple TLS proxy with mutual authentication support for securing non-TLS backend applications";
homepage = "https://github.com/ghostunnel/ghostunnel#readme";
license = licenses.asl20;
maintainers = with maintainers; [ roberth ];
};
}