Profpatsch/third_party/overlays/sam/pkgs/by-name/syndicate-pty-driver/package.nix
 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
{ lib
, rustPlatform
, fetchFromSyndicateLang
}:

rustPlatform.buildRustPackage rec {
  pname = "syndicate-pty-driver";
  version = "0-unstable-2024-06-08";

  src = fetchFromSyndicateLang {
    owner = "tonyg";
    repo = "syndicate-pty-driver";
    rev = "33ab20a4525e00c4f2fa4f825ed18835e7e2d008";
    hash = "sha256-emxYmjRWEumHgTkbbPL2sy4LvoEcxIjKjZDI7hnskgY=";
  };
  cargoHash = "sha256-vI+woKUlsGZPVzp3upt/z59B95xMpcI8WD91UdbHwHg=";

  RUSTC_BOOTSTRAP = 1;

  meta = {
    description = "PTY (pseudoterminal) driver for Syndicate";
    homepage = "https://synit.org/";
    license = lib.licenses.asl20;
    mainProgram = "syndicate-pty-driver";
    maintainers = with lib.maintainers; [ ehmry ];
    platforms = lib.platforms.linux;
  };
}