1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/servers/x11/xorg/xcb-util-xrm.nix
Tuomas Tynkkynen c4521aeffa xcb-util-xrm: Fix 'lib.optional' usage
That produces a list containing a singleton list containing libX11.
2016-08-30 16:28:02 +03:00

23 lines
693 B
Nix

{ stdenv, fetchurl, pkgconfig, m4, libxcb, xcbutil, libX11 }:
stdenv.mkDerivation rec {
version = "1.0";
name = "xcb-util-xrm-${version}";
src = fetchurl {
url = "https://github.com/Airblader/xcb-util-xrm/releases/download/v${version}/${name}.tar.bz2";
sha256 = "1h5vxwpd37dqfw9yj1l4zd9c5dj30r3g0szgysr6kd7xrqgaq04l";
};
buildInputs = [ pkgconfig m4 libxcb xcbutil ]
++ stdenv.lib.optional doCheck libX11;
doCheck = true;
meta = with stdenv.lib; {
description = "XCB utility functions for the X resource manager";
homepage = https://github.com/Airblader/xcb-util-xrm;
license = licenses.mit; # X11 variant
platforms = with platforms; unix;
};
}