1 { lib, stdenv, fetchFromGitHub, libxkbcommon, pkg-config, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-BYMRPjGRVSnYzkdbxypkuE0YkeVLPJ32iGZ1b0R6wto=";
14 buildInputs = [ libxkbcommon ];
16 nativeBuildInputs = [ cmake pkg-config ];
18 # https://github.com/Aetf/libtsm/issues/20
20 substituteInPlace etc/libtsm.pc.in \
21 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
22 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
26 description = "Terminal-emulator State Machine";
27 homepage = "http://www.freedesktop.org/wiki/Software/kmscon/libtsm/";
28 license = licenses.mit;
29 maintainers = with maintainers; [ cstrahan ];
30 platforms = platforms.linux;