1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

Merge pull request #84853 from ThibautMarty/herbstluftwm-0.8.0

This commit is contained in:
Jörg Thalheim 2020-05-01 23:48:54 +01:00 committed by GitHub
commit dabc99063e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 15 deletions

View file

@ -31,6 +31,7 @@
<xref linkend="opt-services.xserver.windowManager.twm.enable"/> = true;
<xref linkend="opt-services.xserver.windowManager.icewm.enable"/> = true;
<xref linkend="opt-services.xserver.windowManager.i3.enable"/> = true;
<xref linkend="opt-services.xserver.windowManager.herbstluftwm.enable"/> = true;
</programlisting>
</para>
<para>

View file

@ -1,27 +1,46 @@
{ stdenv, fetchurl, pkgconfig, glib, libX11, libXext, libXinerama }:
{ 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;
stdenv.mkDerivation rec {
name = "herbstluftwm-0.7.2";
pname = "herbstluftwm";
version = "0.8.1";
src = fetchurl {
url = "https://herbstluftwm.org/tarballs/${name}.tar.gz";
sha256 = "1kc18aj9j3nfz6fj4qxg9s3gg4jvn6kzi3ii24hfm0vqdpy17xnz";
url = "https://herbstluftwm.org/tarballs/herbstluftwm-${version}.tar.gz";
sha256 = "0c1lf82z6a56g8asin91cmqhzk3anw0xwc44b31bpjixadmns57y";
};
patchPhase = ''
substituteInPlace config.mk \
--replace "/usr/local" "$out" \
--replace "/etc" "$out/etc" \
--replace "/zsh/functions/Completion/X" "/zsh/site-functions" \
--replace "/usr/share" "\$(PREFIX)/share"
'';
outputs = [
"out"
] ++ stdenv.lib.optionals withDoc [
"doc"
"man"
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib libX11 libXext libXinerama ];
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
];
meta = {
description = "A manual tiling window manager for X";
homepage = "http://herbstluftwm.org/";
homepage = "https://herbstluftwm.org/";
license = stdenv.lib.licenses.bsd2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ the-kenny ];

View file

@ -19790,7 +19790,9 @@ in
heme = callPackage ../applications/editors/heme { };
herbstluftwm = callPackage ../applications/window-managers/herbstluftwm { };
herbstluftwm = callPackage ../applications/window-managers/herbstluftwm {
asciidoc = asciidoc-full;
};
hercules = callPackage ../applications/virtualization/hercules { };