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