nixpkgs/pkgs/applications/window-managers/herbstluftwm/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

{ 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 {
pname = "herbstluftwm";
2020-06-10 00:43:27 +01:00
version = "0.8.3";
2013-07-17 17:02:53 +01:00
src = fetchurl {
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
};
outputs = [
"out"
] ++ stdenv.lib.optionals withDoc [
"doc"
"man"
];
2013-07-17 17:02:53 +01:00
cmakeFlags = [
"-DCMAKE_INSTALL_SYSCONF_PREFIX=${placeholder "out"}/etc"
] ++ stdenv.lib.optional (!withDoc) "-DWITH_DOCUMENTATION=OFF";
nativeBuildInputs = [
cmake
pkgconfig
] ++ stdenv.lib.optional withDoc asciidoc;
buildInputs = [
libX11
libXext
libXinerama
libXrandr
];
2013-07-17 17:02:53 +01:00
meta = {
description = "A manual tiling window manager for X";
homepage = "https://herbstluftwm.org/";
license = stdenv.lib.licenses.bsd2;
2013-07-17 17:02:53 +01:00
platforms = stdenv.lib.platforms.linux;
};
}