about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-01-10 23:04:27 +0800
committerGitHub <noreply@github.com>2022-01-10 23:04:27 +0800
commit87505d494d1b0590806ba717ec78c634db5bbc99 (patch)
tree8b24dd8f908b0643243993fc639c68ff90d2d7cd /pkgs/tools
parent92b09d4735639fa4ee7fb550aa9e48b64d3e0d88 (diff)
parenta4f9bd1118f25c865056d1228f3683b272660d25 (diff)
Merge pull request #153875 from JulienMalka/htpdate
htpdate 1.2.2 -> 1.3.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/htpdate/default.nix19
1 files changed, 9 insertions, 10 deletions
diff --git a/pkgs/tools/networking/htpdate/default.nix b/pkgs/tools/networking/htpdate/default.nix
index cd2b3a18d4215..dbf97e5ce71bf 100644
--- a/pkgs/tools/networking/htpdate/default.nix
+++ b/pkgs/tools/networking/htpdate/default.nix
@@ -1,26 +1,25 @@
-{ lib, stdenv, fetchurl }:
+{ stdenv, lib, fetchFromGitHub }:
 
 stdenv.mkDerivation rec {
-  version = "1.2.2";
+  version = "1.3.1";
   pname = "htpdate";
 
-  src = fetchurl {
-    url = "http://www.vervest.org/htp/archive/c/${pname}-${version}.tar.xz";
-    sha256 = "0mgr350qwgzrdrwkb9kaj6z7l6hn6a2pwh7sacqvnal5fyc9a7sz";
+  src = fetchFromGitHub {
+    owner = "twekkel";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "JPaxbu7LlGV+Bh5qxVxeNSPnMQNqLaLYWBRbpETSpQs=";
   };
 
   makeFlags = [
-    "INSTALL=install"
-    "STRIP=${stdenv.cc.bintools.targetPrefix}strip"
     "prefix=$(out)"
   ];
 
-  enableParallelBuilding = true;
-
   meta = with lib; {
     description = "Utility to fetch time and set the system clock over HTTP";
-    homepage = "http://www.vervest.org/htp/";
+    homepage = "https://github.com/twekkel/htpdate";
     platforms = platforms.linux;
     license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ julienmalka ];
   };
 }