summary refs log tree commit diff
path: root/pkgs/development/libraries/libtsm/default.nix
blob: 18ceb5302292aec6b826f37739299eb7024731e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, lib, fetchurl, libxkbcommon, pkgconfig, autoreconfHook }:

stdenv.mkDerivation rec {
  name = "libtsm-3";

  src = fetchurl {
    url = "https://freedesktop.org/software/kmscon/releases/${name}.tar.xz";
    sha256 = "01ygwrsxfii0pngfikgqsb4fxp8n1bbs47l7hck81h9b9bc1ah8i";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libxkbcommon ] ++ lib.optionals stdenv.isDarwin [
    autoreconfHook
  ];

  configureFlags = [ "--disable-debug" ];

  patches = lib.optional stdenv.isDarwin ./darwin.patch;

  meta = with lib; {
    description = "Terminal-emulator State Machine";
    homepage = http://www.freedesktop.org/wiki/Software/kmscon/libtsm/;
    license = licenses.mit;
    maintainers = with maintainers; [ cstrahan ];
    platforms = with platforms; unix;
  };
}