1 { lib, stdenv, fetchurl, fetchpatch, pkg-config, libmatchbox, libX11, libXext }:
3 stdenv.mkDerivation rec {
7 nativeBuildInputs = [ pkg-config ];
8 buildInputs = [ libmatchbox ];
9 NIX_LDFLAGS = "-lX11 -L${libX11}/lib -lXext -L${libXext}/lib";
12 url = "https://downloads.yoctoproject.org/releases/matchbox/matchbox-window-manager/${version}/matchbox-window-manager-${version}.tar.bz2";
13 sha256 = "1zyfq438b466ygcz78nvsmnsc5bhg4wcfnpxb43kbkwpyx53m8l1";
17 # Pull upstream fix for -fno-common tollchains:
19 name = "fno-common.patch";
20 url = "https://git.yoctoproject.org/matchbox-window-manager/patch/?id=844f61069896fe3f549ab425d731c061028f697c";
21 sha256 = "1md2s7q094hn4gzg21pfyz8d426y07d5rbx2icas9nvc8jj7bwfc";
26 description = "X window manager for non-desktop embedded systems";
27 homepage = "https://www.yoctoproject.org/software-item/matchbox/";
28 license = lib.licenses.gpl2Plus;
29 platforms = lib.platforms.linux;