summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/st/statime/package.nix
blob: 456807eb1af10c6bb631383cacbffb3ef4b45bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "statime";
  version = "0.4.0";
  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "pendulum-project";
    repo = "statime";
    tag = "v${finalAttrs.version}";
    hash = "sha256-hevR2pGBG70bnGldSyWK6MGs6lA9R1Bj8sko2WwMTvs=";
  };

  cargoHash = "sha256-6/XUyOYmj5g6sO8RXEofHqsM08bUObFO3GoKgG1pyI0=";

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Implementation of the Precision Time Protocol (PTP) in Rust";
    homepage = "https://github.com/pendulum-project/statime";
    changelog = "https://github.com/pendulum-project/statime/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license =
      with lib.licenses;
      OR [
        asl20
        mit
      ];
    maintainers = with lib.maintainers; [ s0me1newithhand7s ];
    mainProgram = "statime";
    platforms = lib.platforms.linux;
  };
})