summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/ovh-zone/default.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-06-18 14:00:05 +0200
committerlassulus <lass@lassul.us>2017-06-18 14:00:05 +0200
commit1ec7dabe6233ecec74a0b387f1e7851f55c72ad5 (patch)
tree0a25527a7467b14c76b206e6218877f0fac5bcf4 /krebs/5pkgs/simple/ovh-zone/default.nix
parentc6605a3ab8f6a5098bbd3e011de50e37bf242a05 (diff)
krebszones -> ovh-zone
Diffstat (limited to 'krebs/5pkgs/simple/ovh-zone/default.nix')
-rw-r--r--krebs/5pkgs/simple/ovh-zone/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/ovh-zone/default.nix b/krebs/5pkgs/simple/ovh-zone/default.nix
new file mode 100644
index 000000000..051a14e8d
--- /dev/null
+++ b/krebs/5pkgs/simple/ovh-zone/default.nix
@@ -0,0 +1,25 @@
+{ lib, pkgs,python3Packages,fetchurl, ... }:
+
+# TODO: Prepare a diff of future and current
+## ovh-zone export krebsco.de --config ~/secrets/krebs/cfg.json |sed 's/[ ]\+/ /g' | sort current
+## sed 's/[ ]\+/ /g'/etc/zones/krebsco.de | sort > future
+## diff future.sorted current.sorted
+
+python3Packages.buildPythonPackage rec {
+ name = "ovh-zone-${version}";
+ version = "0.4.4";
+ propagatedBuildInputs = with pkgs.python3Packages;[
+ d2to1 # for setup to work
+ ovh
+ docopt
+ ];
+ src = fetchurl {
+ url = "https://pypi.python.org/packages/source/k/krebszones/krebszones-${version}.tar.gz";
+ sha256 = "1bzfc2b9468769j1yj93j12zdlccqbjiqfhql2larximh491sg4d";
+ };
+ meta = {
+ homepage = http://krebsco.de/;
+ description = "OVH Zone Upload";
+ license = lib.licenses.wtfpl;
+ };
+}