2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, coreutils, curl, diffutils, gawk, gnugrep, gnused, openssl, makeWrapper, fetchFromGitHub }:
|
2016-10-20 12:32:05 +01:00
|
|
|
let
|
|
|
|
pkgName = "dehydrated";
|
2019-07-01 11:24:49 +01:00
|
|
|
version = "0.6.5";
|
2016-10-20 12:32:05 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = pkgName + "-" + version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lukas2511";
|
|
|
|
repo = "dehydrated";
|
|
|
|
rev = "v${version}";
|
2019-07-01 11:24:49 +01:00
|
|
|
sha256 = "14k7ykry16zp09i0bqb5pqaclvnjcb6p3x8knm9v5q0bdvlplkjv";
|
2016-10-20 12:32:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a dehydrated $out/bin
|
|
|
|
wrapProgram "$out/bin/dehydrated" --prefix PATH : "${stdenv.lib.makeBinPath [ openssl coreutils gnused gnugrep diffutils curl gawk ]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Letsencrypt/acme client implemented as a shell-script";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.pstn ];
|
|
|
|
};
|
|
|
|
}
|