depot/third_party/nixpkgs/pkgs/tools/networking/cocom/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

33 lines
731 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cocom";
version = "1.1.3";
src = fetchFromGitHub {
owner = "LamdaLamdaLamda";
repo = pname;
rev = "v${version}";
sha256 = "0sl4ivn95sr5pgw2z877gmhyfc4mk9xr457i5g2i4wqnf2jmy14j";
};
cargoHash = "sha256-y5/xOP5YzqsqBxG9c4r9ORyaEf5Ed6D10NFCaKQPchI=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
# Tests require network access
doCheck = false;
meta = with lib; {
description = "NTP client";
homepage = "https://github.com/LamdaLamdaLamda/cocom";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
mainProgram = "cocom";
};
}