nixpkgs/pkgs/by-name/ti/tio/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
835 B
Nix
Raw Normal View History

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