sslh: 1.21c → 1.22c

+8 -6
+8 -6
pkgs/servers/sslh/default.nix
··· 1 - { lib, stdenv, fetchurl, libcap, libconfig, perl, tcp_wrappers, pcre, nixosTests }: 1 + { lib, stdenv, fetchFromGitHub, libcap, libconfig, perl, tcp_wrappers, pcre2, nixosTests }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "sslh"; 5 - version = "1.21c"; 5 + version = "1.22c"; 6 6 7 - src = fetchurl { 8 - url = "https://www.rutschle.net/tech/sslh/sslh-v${version}.tar.gz"; 9 - sha256 = "01p7w74ppszxgz6n41lqd6xqvc7bjk2dsc769dd1yb7q4qvpiziv"; 7 + src = fetchFromGitHub { 8 + owner = "yrutschle"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "sha256-A+nUWiOPoz/T5afZUzt5In01e049TgHisTF8P5Vj180="; 10 12 }; 11 13 12 14 postPatch = "patchShebangs *.sh"; 13 15 14 - buildInputs = [ libcap libconfig perl tcp_wrappers pcre ]; 16 + buildInputs = [ libcap libconfig perl tcp_wrappers pcre2 ]; 15 17 16 18 makeFlags = [ "USELIBCAP=1" "USELIBWRAP=1" ]; 17 19