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

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