From ed6c28c32e366341bed2fb73c5ba60e10ee71110 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sun, 21 May 2017 08:21:01 -0400 Subject: dns: Add zone-files package --- pkgs/default.nix | 5 +++++ pkgs/zone-files/default.nix | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/default.nix create mode 100644 pkgs/zone-files/default.nix (limited to 'pkgs') diff --git a/pkgs/default.nix b/pkgs/default.nix new file mode 100644 index 0000000..7972826 --- /dev/null +++ b/pkgs/default.nix @@ -0,0 +1,5 @@ +{ nixpkgs ? , ...}: +with import nixpkgs {}; +rec { + zone-files = callPackage ./zone-files/default.nix {}; +} diff --git a/pkgs/zone-files/default.nix b/pkgs/zone-files/default.nix new file mode 100644 index 0000000..840eed1 --- /dev/null +++ b/pkgs/zone-files/default.nix @@ -0,0 +1,13 @@ +{ stdenv }: + +stdenv.mkDerivation rec { + version = "1.0"; + name = "zone-files-${version}"; + + src = ../../data/dns; + + installPhase = '' + mkdir $out + cp $src/* $out/ + ''; +} -- cgit v1.2.3