From 71ab1792c4cc88cb8ec80ace23f7e299643453d6 Mon Sep 17 00:00:00 2001 From: Ian Duncan Date: Fri, 27 Feb 2015 04:30:08 +0000 Subject: [PATCH 1/3] Add noip2 package --- pkgs/tools/networking/noip/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/tools/networking/noip/default.nix diff --git a/pkgs/tools/networking/noip/default.nix b/pkgs/tools/networking/noip/default.nix new file mode 100644 index 000000000000..91f9982a0baa --- /dev/null +++ b/pkgs/tools/networking/noip/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation rec { + name = "noip-2.1.9-1"; + + src = fetchurl { + url = http://www.noip.com/client/linux/noip-duc-linux.tar.gz; + sha256 = "82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593"; + }; + + makeFlags = [ "PREFIX=\${out}" ]; + installPhase = + '' + if [ ! -d "$out/bin" ]; then mkdir -p $out/bin;fi + cp noip2 $out/bin + ''; + + enableParallelBuilding = true; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 71d4ca4d5231..9748c4636e32 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2014,6 +2014,8 @@ let ngrok = callPackage ../tools/misc/ngrok { }; + noip = callPackage ../tools/networking/noip { }; + mpack = callPackage ../tools/networking/mpack { }; pa_applet = callPackage ../tools/audio/pa-applet { }; From 5f218eaf9220043d884924a1ecb7d87df8145a03 Mon Sep 17 00:00:00 2001 From: Ian Duncan Date: Fri, 27 Feb 2015 15:04:06 +0000 Subject: [PATCH 2/3] Add meta info for noip package --- lib/maintainers.nix | 1 + pkgs/tools/networking/noip/default.nix | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 54e74fb33115..75fdb60e84b2 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -85,6 +85,7 @@ henrytill = "Henry Till "; hinton = "Tom Hinton "; hrdinka = "Christoph Hrdinka "; + iand675 = "Ian Duncan "; ianwookim = "Ian-Woo Kim "; iElectric = "Domen Kozar "; iyzsong = "Song Wenwu "; diff --git a/pkgs/tools/networking/noip/default.nix b/pkgs/tools/networking/noip/default.nix index 91f9982a0baa..e2f1dc9cf1f6 100644 --- a/pkgs/tools/networking/noip/default.nix +++ b/pkgs/tools/networking/noip/default.nix @@ -16,4 +16,11 @@ stdenv.mkDerivation rec { ''; enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "Dynamic DNS daemon for no-ip accounts"; + homepage = http://noip.com/download?page=linux; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.iand675 ]; + }; } From bf45ee500dd73128fc092b3b6e0185c4002a0953 Mon Sep 17 00:00:00 2001 From: Ian Duncan Date: Fri, 27 Feb 2015 17:29:58 +0000 Subject: [PATCH 3/3] Remove unnecessary conditional --- pkgs/tools/networking/noip/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/noip/default.nix b/pkgs/tools/networking/noip/default.nix index e2f1dc9cf1f6..bfd9b90b6b13 100644 --- a/pkgs/tools/networking/noip/default.nix +++ b/pkgs/tools/networking/noip/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=\${out}" ]; installPhase = '' - if [ ! -d "$out/bin" ]; then mkdir -p $out/bin;fi + mkdir -p $out/bin cp noip2 $out/bin '';