Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
49 lines
835 B
Nix
49 lines
835 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
glib,
|
|
inih,
|
|
lua,
|
|
bash-completion,
|
|
darwin,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tio";
|
|
version = "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tio";
|
|
repo = "tio";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-/eXy1roYmeZaQlY4PjBchwRR7JwyTvVIqDmmf6upJqA=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [
|
|
inih
|
|
lua
|
|
glib
|
|
] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ darwin.apple_sdk.frameworks.IOKit ];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
bash-completion
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Serial console TTY";
|
|
homepage = "https://tio.github.io/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ ];
|
|
mainProgram = "tio";
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|