at 23.11-beta 32 lines 923 B view raw
1{ lib, stdenv, fetchFromGitHub, libxkbcommon, pkg-config, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "libtsm"; 5 version = "4.0.2"; 6 7 src = fetchFromGitHub { 8 owner = "Aetf"; 9 repo = "libtsm"; 10 rev = "v${version}"; 11 sha256 = "sha256-BYMRPjGRVSnYzkdbxypkuE0YkeVLPJ32iGZ1b0R6wto="; 12 }; 13 14 buildInputs = [ libxkbcommon ]; 15 16 nativeBuildInputs = [ cmake pkg-config ]; 17 18 # https://github.com/Aetf/libtsm/issues/20 19 postPatch = '' 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@ 23 ''; 24 25 meta = with lib; { 26 description = "Terminal-emulator State Machine"; 27 homepage = "https://www.freedesktop.org/wiki/Software/kmscon/libtsm/"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ ]; 30 platforms = platforms.linux; 31 }; 32}