porkbun-ddns: init
This commit is contained in:
25
pkgs/by-name/po/porkbun-ddns/package.nix
Normal file
25
pkgs/by-name/po/porkbun-ddns/package.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, python3
|
||||
}:
|
||||
let
|
||||
python = python3.withPackages (py: [ py.requests ]);
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "porkbun-ddns";
|
||||
|
||||
src = ./.;
|
||||
inherit python;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -Dm0755 $src/porkbun-ddns.py $out/bin/porkbun-ddns
|
||||
substituteAllInPlace $out/bin/porkbun-ddns
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Porkbun dynamic DNS script";
|
||||
license = lib.licenses.gpl3;
|
||||
platforms = python.meta.platforms;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user