about summary refs log tree commit diff
path: root/pkgs/tools/networking/htpdate/default.nix
diff options
context:
space:
mode:
authorJoachim F <joachifm@users.noreply.github.com>2016-09-23 15:19:49 +0200
committerGitHub <noreply@github.com>2016-09-23 15:19:49 +0200
commit7529fd3bff8e3aee5fbdc293922379de81c2cb85 (patch)
treee2f37000cb9bb7a306bcb0a5d9e6a05090f69b3b /pkgs/tools/networking/htpdate/default.nix
parent24135d60724b4ad8b0b15dd9b2082ae9355e193d (diff)
parente23cc550b32a712d2397d005c7a906d6abf35a03 (diff)
downloadnixlib-7529fd3bff8e3aee5fbdc293922379de81c2cb85.tar
nixlib-7529fd3bff8e3aee5fbdc293922379de81c2cb85.tar.gz
nixlib-7529fd3bff8e3aee5fbdc293922379de81c2cb85.tar.bz2
nixlib-7529fd3bff8e3aee5fbdc293922379de81c2cb85.tar.lz
nixlib-7529fd3bff8e3aee5fbdc293922379de81c2cb85.tar.xz
nixlib-7529fd3bff8e3aee5fbdc293922379de81c2cb85.tar.zst
nixlib-7529fd3bff8e3aee5fbdc293922379de81c2cb85.zip
Merge pull request #18818 from Jookia/RFC_htpdate
Rfc htpdate
Diffstat (limited to 'pkgs/tools/networking/htpdate/default.nix')
-rw-r--r--pkgs/tools/networking/htpdate/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/networking/htpdate/default.nix b/pkgs/tools/networking/htpdate/default.nix
new file mode 100644
index 000000000000..10ed8f34e3a6
--- /dev/null
+++ b/pkgs/tools/networking/htpdate/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, coreutils, binutils }:
+
+stdenv.mkDerivation rec {
+  version = "1.1.3";
+  name = "htpdate-${version}";
+
+  src = fetchurl {
+    url = "http://twekkel.home.xs4all.nl/htp/htpdate-${version}.tar.gz";
+    sha256 = "0hfg4qrsmpqw03m9qwf3zgi4brbf65w6wd3w30nkamc7x8b4vn5i";
+  };
+
+  installFlags = [
+    "INSTALL=${coreutils}/bin/install"
+    "STRIP=${binutils}/bin/strip"
+    "prefix=$(out)"
+  ];
+
+  meta = {
+    description = "Utility to fetch time and set the system clock over HTTP";
+    homepage = http://www.vervest.org/htp/;
+    platforms = stdenv.lib.platforms.linux;
+    license = stdenv.lib.licenses.gpl2Plus;
+  };
+}