nixpkgs/pkgs/development/libraries/libtsm/default.nix

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

33 lines
931 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, libxkbcommon, pkg-config, cmake }:
stdenv.mkDerivation rec {
2020-08-05 03:25:15 +00:00
pname = "libtsm";
2022-02-19 17:58:34 +00:00
version = "4.0.2";
2020-08-05 03:25:15 +00:00
src = fetchFromGitHub {
owner = "Aetf";
repo = "libtsm";
rev = "v${version}";
2022-02-19 17:58:34 +00:00
sha256 = "sha256-BYMRPjGRVSnYzkdbxypkuE0YkeVLPJ32iGZ1b0R6wto=";
};
2020-08-05 03:25:15 +00:00
buildInputs = [ libxkbcommon ];
nativeBuildInputs = [ cmake pkg-config ];
2022-05-18 11:44:36 +00:00
# https://github.com/Aetf/libtsm/issues/20
postPatch = ''
substituteInPlace etc/libtsm.pc.in \
--replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
'';
meta = with lib; {
description = "Terminal-emulator State Machine";
homepage = "http://www.freedesktop.org/wiki/Software/kmscon/libtsm/";
license = licenses.mit;
2015-07-01 12:11:05 +00:00
maintainers = with maintainers; [ cstrahan ];
platforms = platforms.linux;
};
}