2015-06-26 05:06:55 +03:00
|
|
|
{ stdenv, lib, fetchurl, libxkbcommon, pkgconfig, autoconf, automake }:
|
2014-01-15 09:58:46 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libtsm-3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://freedesktop.org/software/kmscon/releases/${name}.tar.xz";
|
|
|
|
sha256 = "01ygwrsxfii0pngfikgqsb4fxp8n1bbs47l7hck81h9b9bc1ah8i";
|
|
|
|
};
|
|
|
|
|
2015-06-26 05:06:55 +03:00
|
|
|
buildInputs = [ libxkbcommon pkgconfig ] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
autoconf automake
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
|
|
|
aclocal
|
|
|
|
'';
|
2014-01-15 09:58:46 +04:00
|
|
|
|
|
|
|
configureFlags = [ "--disable-debug" ];
|
|
|
|
|
2015-06-26 05:06:55 +03:00
|
|
|
patches = lib.optional stdenv.isDarwin ./darwin.patch;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2014-01-15 09:58:46 +04:00
|
|
|
description = "Terminal-emulator State Machine";
|
|
|
|
homepage = "http://www.freedesktop.org/wiki/Software/kmscon/libtsm/";
|
2015-06-26 05:06:55 +03:00
|
|
|
license = licenses.mit;
|
2015-07-01 15:11:05 +03:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = with platforms; unix;
|
2014-01-15 09:58:46 +04:00
|
|
|
};
|
|
|
|
}
|