nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 30 lines 630 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 version = "2.0.0"; 9 pname = "htpdate"; 10 11 src = fetchFromGitHub { 12 owner = "twekkel"; 13 repo = "htpdate"; 14 rev = "v${version}"; 15 sha256 = "sha256-X7r95Uc4oGB0eVum5D7pC4tebZIyyz73g6Q/D0cjuFM="; 16 }; 17 18 makeFlags = [ 19 "prefix=$(out)" 20 ]; 21 22 meta = with lib; { 23 description = "Utility to fetch time and set the system clock over HTTP"; 24 homepage = "https://github.com/twekkel/htpdate"; 25 platforms = platforms.linux; 26 license = licenses.gpl2Plus; 27 maintainers = with maintainers; [ julienmalka ]; 28 mainProgram = "htpdate"; 29 }; 30}