@@ -0,0 +1,28 @@
1+{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, openssl, socat, iproute }:
2+stdenv.mkDerivation rec {
3+ name = "acme.sh-${version}";
4+ version = "2.7.8";
5+
6+ src = fetchFromGitHub {
7+ owner = "Neilpang";
8+ repo = "acme.sh";
9+ rev = version;
10+ sha256 = "0zm64z7av63xi7yjhljab2i8q1vx4q1mpcmcm58jm6k4babalxrf";
11+ };
12+
13+ nativeBuildInputs = [ makeWrapper ];
14+
15+ installPhase = ''
16+ mkdir -p $out $out/bin $out/libexec
17+ cp -R $src/* $_
18+ makeWrapper $out/libexec/acme.sh $out/bin/acme.sh \
19+ --prefix PATH : "${lib.makeBinPath [ socat openssl curl iproute ]}"
20+ '';
21+
22+ meta = with stdenv.lib; {
23+ description = "A pure Unix shell script implementing ACME client protocol";
24+ homepage = https://acme.sh/;
25+ license = licenses.gpl3;
26+ maintainers = [ maintainers.yorickvp ];
27+ };
28+}