2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, coreutils, curl, diffutils, gawk, gnugrep, gnused, openssl, makeWrapper, fetchFromGitHub, installShellFiles }:
|
2016-10-20 12:32:05 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-09-07 14:47:17 +01:00
|
|
|
pname = "dehydrated";
|
2020-12-11 12:40:41 +00:00
|
|
|
version = "0.7.0";
|
2016-10-20 12:32:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lukas2511";
|
|
|
|
repo = "dehydrated";
|
|
|
|
rev = "v${version}";
|
2020-12-11 12:40:41 +00:00
|
|
|
sha256 = "09jhmkjvnj98zbf92qwdr5rr7pc6v63xzyk2fbi177r7szb2yg09";
|
2016-10-20 12:32:05 +01:00
|
|
|
};
|
|
|
|
|
2019-09-07 14:47:17 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
2016-10-20 12:32:05 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-09-07 14:47:17 +01:00
|
|
|
installManPage docs/man/dehydrated.1
|
|
|
|
|
|
|
|
mkdir -p "$out/share/docs/dehydrated"
|
|
|
|
cp docs/*.md "$out/share/docs/dehydrated"
|
|
|
|
cp -r docs/examples "$out/share/docs/dehydrated"
|
|
|
|
cp {CHANGELOG,LICENSE,README.md} "$out/share/docs/dehydrated"
|
|
|
|
|
2016-10-20 12:32:05 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a dehydrated $out/bin
|
2021-01-15 09:19:50 +00:00
|
|
|
wrapProgram "$out/bin/dehydrated" --prefix PATH : "${lib.makeBinPath [ openssl coreutils gnused gnugrep diffutils curl gawk ]}"
|
2016-10-20 12:32:05 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-10-20 12:32:05 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Letsencrypt/acme client implemented as a shell-script";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.pstn ];
|
|
|
|
};
|
|
|
|
}
|