-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdefault.nix
More file actions
42 lines (32 loc) · 1.17 KB
/
default.nix
File metadata and controls
42 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib, stdenv, makeWrapper, bash, curl, jq, coreutils, gawk, gnugrep }:
stdenv.mkDerivation rec {
pname = "cloudflare-ddns";
version = "1.0.0";
src = ./.;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bash curl jq coreutils gawk gnugrep ];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp cloudflare-ddns.sh $out/bin/cloudflare-ddns
chmod +x $out/bin/cloudflare-ddns
wrapProgram $out/bin/cloudflare-ddns \
--prefix PATH : ${lib.makeBinPath [ bash curl jq coreutils gawk gnugrep ]}
runHook postInstall
'';
meta = with lib; {
description = "Lightweight Cloudflare DDNS script";
longDescription = ''
A lightweight script for updating Cloudflare DNS records automatically.
Supports IPv4 and IPv6, multiple records, smart monitoring, automatic caching,
multiple authentication methods, proxy support, systemd integration,
Telegram notifications, CSV logging, and hook commands.
'';
homepage = "https://github.com/fernvenue/cloudflare-ddns";
license = licenses.bsd3;
maintainers = [ ];
platforms = platforms.unix;
mainProgram = "cloudflare-ddns";
};
}