btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / hi / hitch / package.nix
blobbed9f77908a1fa6644805fd4e2cbf82a1d6889b9
1 { lib, stdenv, fetchurl, docutils, libev, openssl, pkg-config, nixosTests }:
2 stdenv.mkDerivation rec {
3   version = "1.8.0";
4   pname = "hitch";
6   src = fetchurl {
7     url = "https://hitch-tls.org/source/${pname}-${version}.tar.gz";
8     sha256 = "sha256-38mUhLx//qJ6MWnoTWwheYjtpHsgirLlUk3Cpd0Vj04=";
9   };
11   nativeBuildInputs = [ pkg-config ];
12   buildInputs = [ docutils libev openssl ];
14   outputs = [ "out" "doc" "man" ];
16   passthru.tests.hitch = nixosTests.hitch;
18   meta = with lib; {
19     description = "Libev-based high performance SSL/TLS proxy by Varnish Software";
20     homepage = "https://hitch-tls.org/";
21     license = licenses.bsd2;
22     maintainers = [ maintainers.jflanglois ];
23     platforms = platforms.linux;
24     mainProgram = "hitch";
25   };