2020-04-10 10:56:37 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, glib, libX11, libXext, libXinerama, libXrandr
|
|
|
|
, withDoc ? stdenv.buildPlatform == stdenv.targetPlatform, asciidoc ? null }:
|
|
|
|
|
|
|
|
# Doc generation is disabled by default when cross compiling because asciidoc
|
|
|
|
# does not cross compile for now
|
|
|
|
|
|
|
|
assert withDoc -> asciidoc != null;
|
2013-07-17 17:02:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-09 22:18:58 +01:00
|
|
|
pname = "herbstluftwm";
|
2020-06-10 00:43:27 +01:00
|
|
|
version = "0.8.3";
|
2013-07-17 17:02:53 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-09 22:18:58 +01:00
|
|
|
url = "https://herbstluftwm.org/tarballs/herbstluftwm-${version}.tar.gz";
|
2020-06-10 00:43:27 +01:00
|
|
|
sha256 = "1qmb4pjf2f6g0dvcg11cw9njwmxblhqzd70ai8qnlgqw1iz3nkm1";
|
2013-07-17 17:02:53 +01:00
|
|
|
};
|
|
|
|
|
2020-04-09 22:18:58 +01:00
|
|
|
outputs = [
|
|
|
|
"out"
|
2020-04-10 10:56:37 +01:00
|
|
|
] ++ stdenv.lib.optionals withDoc [
|
2020-04-09 22:18:58 +01:00
|
|
|
"doc"
|
|
|
|
"man"
|
|
|
|
];
|
2013-07-17 17:02:53 +01:00
|
|
|
|
2020-04-09 22:18:58 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_SYSCONF_PREFIX=${placeholder "out"}/etc"
|
2020-04-10 10:56:37 +01:00
|
|
|
] ++ stdenv.lib.optional (!withDoc) "-DWITH_DOCUMENTATION=OFF";
|
2020-04-09 22:18:58 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
2020-04-10 10:56:37 +01:00
|
|
|
] ++ stdenv.lib.optional withDoc asciidoc;
|
2020-04-09 22:18:58 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
|
|
|
];
|
2013-07-17 17:02:53 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A manual tiling window manager for X";
|
2020-04-09 22:18:58 +01:00
|
|
|
homepage = "https://herbstluftwm.org/";
|
2014-12-20 23:00:35 +00:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2013-07-17 17:02:53 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|