2024-04-16 13:38:39 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, inih, lua, bash-completion, darwin }:
|
2018-05-10 14:04:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tio";
|
2024-04-16 13:38:39 +00:00
|
|
|
version = "2.8";
|
2018-05-10 14:04:04 +00:00
|
|
|
|
2021-09-19 16:57:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tio";
|
|
|
|
repo = "tio";
|
|
|
|
rev = "v${version}";
|
2024-04-16 13:38:39 +00:00
|
|
|
hash = "sha256-BBfLmRhbDeymXXlYp71XTwbAab7h7gJ842fzZJNb6kU=";
|
2018-05-10 14:04:04 +00:00
|
|
|
};
|
|
|
|
|
2023-05-19 03:47:48 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2024-04-16 13:38:39 +00:00
|
|
|
buildInputs = [ inih lua ]
|
2024-03-09 13:14:13 +00:00
|
|
|
++ lib.optionals (stdenv.hostPlatform.isDarwin) [ darwin.apple_sdk.frameworks.IOKit ];
|
2023-05-19 03:47:48 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config bash-completion ];
|
2018-05-10 14:04:04 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-10 14:04:04 +00:00
|
|
|
description = "Serial console TTY";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://tio.github.io/";
|
2018-05-10 14:04:04 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-12-31 18:48:55 +00:00
|
|
|
maintainers = with maintainers; [ yana ];
|
2019-12-15 12:23:16 +00:00
|
|
|
platforms = platforms.unix;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "tio";
|
2018-05-10 14:04:04 +00:00
|
|
|
};
|
|
|
|
}
|