mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-27 06:10:53 +01:00
Repaired htpdate (hopefully)
This commit is contained in:
parent
7fba273442
commit
8daeddf5c5
3 changed files with 34 additions and 0 deletions
|
@ -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 {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ in
|
|||
{
|
||||
tinystatus = prev.pkgs.callPackage ../packages/tinystatus {};
|
||||
mosh = prev.pkgs.callPackage ../packages/mosh {};
|
||||
htpdate = prev.pkgs.callPackage ../packages/htpdate {};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
31
packages/htpdate/default.nix
Normal file
31
packages/htpdate/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue