Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 pkg-config, 7 libmatchbox, 8 libX11, 9 libXext, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "matchbox"; 14 version = "1.2"; 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ libmatchbox ]; 18 NIX_LDFLAGS = "-lX11 -L${libX11}/lib -lXext -L${libXext}/lib"; 19 20 src = fetchurl { 21 url = "https://downloads.yoctoproject.org/releases/matchbox/matchbox-window-manager/${version}/matchbox-window-manager-${version}.tar.bz2"; 22 sha256 = "1zyfq438b466ygcz78nvsmnsc5bhg4wcfnpxb43kbkwpyx53m8l1"; 23 }; 24 25 patches = [ 26 # Pull upstream fix for -fno-common tollchains: 27 (fetchpatch { 28 name = "fno-common.patch"; 29 url = "https://git.yoctoproject.org/matchbox-window-manager/patch/?id=844f61069896fe3f549ab425d731c061028f697c"; 30 sha256 = "1md2s7q094hn4gzg21pfyz8d426y07d5rbx2icas9nvc8jj7bwfc"; 31 }) 32 ]; 33 34 meta = { 35 description = "X window manager for non-desktop embedded systems"; 36 homepage = "https://www.yoctoproject.org/software-item/matchbox/"; 37 license = lib.licenses.gpl2Plus; 38 platforms = lib.platforms.linux; 39 }; 40}