2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-08-22 20:05:09 +00:00
|
|
|
, libtool
|
|
|
|
, perl
|
2023-08-04 22:07:22 +00:00
|
|
|
, libtermkey
|
|
|
|
, unibilium
|
|
|
|
}:
|
2023-11-16 04:20:00 +00:00
|
|
|
let
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.4.3";
|
2023-11-16 04:20:00 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "libtickit";
|
|
|
|
inherit version;
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leonerd";
|
|
|
|
repo = "libtickit";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-QCrym8g5J1qwsFpU/PB8zZIWdM3YzOySknISSbQE4Sc=";
|
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
# Disabled on darwin, since test assumes TERM=linux
|
|
|
|
./001-skip-test-18term-builder-on-macos.patch
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
libtool
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
buildInputs = [
|
|
|
|
libtermkey
|
|
|
|
unibilium
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeCheckInputs = [ perl ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
makeFlags = [
|
|
|
|
"LIBTOOL=${lib.getExe libtool}"
|
2023-08-22 20:05:09 +00:00
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
doCheck = true;
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A terminal interface construction kit";
|
|
|
|
longDescription = ''
|
|
|
|
This library provides an abstracted mechanism for building interactive full-screen terminal
|
|
|
|
programs. It provides a full set of output drawing functions, and handles keyboard and mouse
|
|
|
|
input events.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.leonerd.org.uk/code/libtickit/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ onemoresuza ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|