diff --git a/flake.nix b/flake.nix
index f4e89d5..8af00b1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -48,10 +48,12 @@
       packages."x86_64-linux" = {
         tinystatus = import ./packages/tinystatus { inherit pkgs; };
         mosh = pkgs.callPackage ./packages/mosh {};
+        htpdate = pkgs.callPackage ./packages/htpdate {};
       };
       packages."aarch64-linux" = {
         tinystatus = import ./packages/tinystatus { pkgs = pkgsrpi; };
         mosh = pkgsrpi.callPackage ./packages/mosh {};
+        htpdate = pkgsrpi.callPackage ./packages/htpdate {};
       };
     };
 }
diff --git a/lib/default.nix b/lib/default.nix
index 0e79722..82b3596 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -29,6 +29,7 @@ in
             {
               tinystatus = prev.pkgs.callPackage ../packages/tinystatus {};
               mosh = prev.pkgs.callPackage ../packages/mosh {};
+              htpdate = prev.pkgs.callPackage ../packages/htpdate {};
             })
         ];
       }
diff --git a/packages/htpdate/default.nix b/packages/htpdate/default.nix
new file mode 100644
index 0000000..34b6d79
--- /dev/null
+++ b/packages/htpdate/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, lib, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  version = "1.3.1";
+  pname = "htpdate";
+
+  src = fetchFromGitHub {
+    owner = "twekkel";
+    repo = pname;
+    rev = "v1.3.1"; 
+    sha256 = "JPaxbu7LlGV+Bh5qxVxeNSPnMQNqLaLYWBRbpETSpQs=";
+  };
+
+  makeFlags = [
+    "INSTALL=install"
+    "STRIP=${stdenv.cc.bintools.targetPrefix}strip"
+    "prefix=$(out)"
+  ];
+
+  postInstall = ''
+  mkdir -p $out
+  '';
+
+
+  meta = with lib; {
+    description = "Utility to fetch time and set the system clock over HTTP";
+    homepage = "http://www.vervest.org/htp/";
+    platforms = platforms.linux;
+    license = licenses.gpl2Plus;
+  };
+}