Repaired htpdate (hopefully)

This commit is contained in:
Julien Malka 2022-01-06 13:15:44 +01:00
parent 7fba273442
commit 8daeddf5c5
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F
3 changed files with 34 additions and 0 deletions

View file

@ -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 {};
};
};
}

View file

@ -29,6 +29,7 @@ in
{
tinystatus = prev.pkgs.callPackage ../packages/tinystatus {};
mosh = prev.pkgs.callPackage ../packages/mosh {};
htpdate = prev.pkgs.callPackage ../packages/htpdate {};
})
];
}

View file

@ -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;
};
}