python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libtsm / default.nix
blob7c0868509f092977c75e4bd21a8ff20cba991ebb
1 { lib, stdenv, fetchFromGitHub, libxkbcommon, pkg-config, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "libtsm";
5   version = "4.0.2";
7   src = fetchFromGitHub {
8     owner = "Aetf";
9     repo = "libtsm";
10     rev = "v${version}";
11     sha256 = "sha256-BYMRPjGRVSnYzkdbxypkuE0YkeVLPJ32iGZ1b0R6wto=";
12   };
14   buildInputs = [ libxkbcommon ];
16   nativeBuildInputs = [ cmake pkg-config ];
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   '';
25   meta = with lib; {
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;
31   };