base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / networking / cocom / default.nix
blobad6ab959e6e2fb2bc8d9fd06557f340bb3c9488b
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , rustPlatform
5 , Security
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "cocom";
10   version = "1.1.3";
12   src = fetchFromGitHub {
13     owner = "LamdaLamdaLamda";
14     repo = pname;
15     rev = "v${version}";
16     sha256 = "0sl4ivn95sr5pgw2z877gmhyfc4mk9xr457i5g2i4wqnf2jmy14j";
17   };
19   cargoHash = "sha256-y5/xOP5YzqsqBxG9c4r9ORyaEf5Ed6D10NFCaKQPchI=";
21   buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
23   # Tests require network access
24   doCheck = false;
26   meta = with lib; {
27     description = "NTP client";
28     homepage = "https://github.com/LamdaLamdaLamda/cocom";
29     license = licenses.gpl3Only;
30     maintainers = with maintainers; [ fab ];
31     mainProgram = "cocom";
32   };