at 23.11-beta 41 lines 1.0 kB view raw
1{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "sslmate-agent"; 5 version = "1.99.11"; 6 7 src = fetchurl { 8 url = "https://packages.sslmate.com/debian/pool/sslmate2/s/sslmate-client/${pname}_${version}-1_amd64.deb"; 9 sha256 = "sha256-LBiZI0pGAFWnvTigEhtkhHq4FGdbYiMzjLheMuP0YTU="; 10 }; 11 12 nativeBuildInputs = [ 13 dpkg 14 autoPatchelfHook 15 ]; 16 17 unpackCmd = '' 18 dpkg-deb -x ${src} ./sslmate-agent-${pname} 19 ''; 20 21 installPhase = '' 22 runHook preInstall 23 24 # Not moving etc because it only contains init.rd setttings 25 mv usr $out 26 mv lib $out 27 28 substituteInPlace $out/lib/systemd/system/sslmate-agent.service \ 29 --replace "/usr/s" "$out/" 30 31 runHook postInstall 32 ''; 33 34 meta = with lib; { 35 description = "Daemon for managing SSL/TLS certificates on a server"; 36 homepage = "https://sslmate.com/"; 37 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 38 license = licenses.unfree; 39 maintainers = with maintainers; [ wolfangaukang ]; 40 }; 41}