2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, inih, lua, bash-completion, darwin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tio";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tio";
|
|
|
|
repo = "tio";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-BBfLmRhbDeymXXlYp71XTwbAab7h7gJ842fzZJNb6kU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [ inih lua ]
|
|
|
|
++ lib.optionals (stdenv.hostPlatform.isDarwin) [ darwin.apple_sdk.frameworks.IOKit ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config bash-completion ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Serial console TTY";
|
|
|
|
homepage = "https://tio.github.io/";
|
|
|
|
license = licenses.gpl2Plus;
|
2022-01-03 16:56:52 +00:00
|
|
|
maintainers = with maintainers; [ yana ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "tio";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|