2023-05-24 13:37:59 +00:00
|
|
|
{ lib, stdenv, coreutils, curl, diffutils, gawk, gnugrep, gnused, hexdump, openssl, makeWrapper, fetchFromGitHub, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dehydrated";
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "0.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lukas2511";
|
|
|
|
repo = "dehydrated";
|
|
|
|
rev = "v${version}";
|
2022-11-02 22:02:43 +00:00
|
|
|
sha256 = "sha256-K08eeruyT5vKzK3PzfCkubZiHbf9Yq7wzD1z69MeDtY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
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"
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a dehydrated $out/bin
|
2023-05-24 13:37:59 +00:00
|
|
|
wrapProgram "$out/bin/dehydrated" --prefix PATH : "${lib.makeBinPath [ openssl coreutils gnused gnugrep diffutils curl gawk hexdump ]}"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Letsencrypt/acme client implemented as a shell-script";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dehydrated";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.pstn ];
|
|
|
|
};
|
|
|
|
}
|