1 { lib, stdenv, coreutils, curl, diffutils, gawk, gnugrep, gnused, hexdump, openssl, makeWrapper, fetchFromGitHub, installShellFiles }:
2 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
10 sha256 = "sha256-K08eeruyT5vKzK3PzfCkubZiHbf9Yq7wzD1z69MeDtY=";
13 nativeBuildInputs = [ makeWrapper installShellFiles ];
16 installManPage docs/man/dehydrated.1
18 mkdir -p "$out/share/docs/dehydrated"
19 cp docs/*.md "$out/share/docs/dehydrated"
20 cp -r docs/examples "$out/share/docs/dehydrated"
21 cp {CHANGELOG,LICENSE,README.md} "$out/share/docs/dehydrated"
24 cp -a dehydrated $out/bin
25 wrapProgram "$out/bin/dehydrated" --prefix PATH : "${lib.makeBinPath [ openssl coreutils gnused gnugrep diffutils curl gawk hexdump ]}"
29 inherit (src.meta) homepage;
30 description = "Letsencrypt/acme client implemented as a shell-script";
31 mainProgram = "dehydrated";
32 license = licenses.mit;
33 platforms = platforms.all;
34 maintainers = [ maintainers.pstn ];