libtsm: fix building with clang for darwin
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, libxkbcommon, pkgconfig }:
|
||||
{ stdenv, lib, fetchurl, libxkbcommon, pkgconfig, autoconf, automake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libtsm-3";
|
||||
@@ -8,14 +8,22 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "01ygwrsxfii0pngfikgqsb4fxp8n1bbs47l7hck81h9b9bc1ah8i";
|
||||
};
|
||||
|
||||
buildInputs = [ libxkbcommon pkgconfig ];
|
||||
buildInputs = [ libxkbcommon pkgconfig ] ++ lib.optionals stdenv.isDarwin [
|
||||
autoconf automake
|
||||
];
|
||||
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
aclocal
|
||||
'';
|
||||
|
||||
configureFlags = [ "--disable-debug" ];
|
||||
|
||||
meta = {
|
||||
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 = stdenv.lib.licenses.mit;
|
||||
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ shlevy cstrahan ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user