-
-
Save betaboon/e78d33912bbcf80bc6bf688262dab3c1 to your computer and use it in GitHub Desktop.
herbstluft
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchurl, cmake, pkgconfig, libX11, libXext, libXinerama, libXrandr | |
, withDoc ? stdenv.buildPlatform == stdenv.targetPlatform, asciidoc ? null | |
, python3, pytest, xorgserver | |
, nixosTests }: | |
# Doc generation is disabled by default when cross compiling because asciidoc | |
# does not cross compile for now | |
assert withDoc -> asciidoc != null; | |
stdenv.mkDerivation rec { | |
pname = "herbstluftwm"; | |
version = "0.8.3"; | |
src = fetchurl { | |
url = "https://herbstluftwm.org/tarballs/herbstluftwm-${version}.tar.gz"; | |
sha256 = "1qmb4pjf2f6g0dvcg11cw9njwmxblhqzd70ai8qnlgqw1iz3nkm1"; | |
}; | |
outputs = [ | |
"out" | |
] ++ stdenv.lib.optionals withDoc [ | |
"doc" | |
"man" | |
]; | |
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 | |
]; | |
doCheck = true; | |
checkInputs = [ | |
#(python3.withPackages (ps: with ps; [ pytest xlib ]))#virtualenv ])) | |
#python3 | |
#pytest | |
#xorgserver # for Xvfb | |
(python3.withPackages (ps: with ps; [ xlib pytest ])) | |
]; | |
checkPhase = '' | |
python3 -m pytest ../tests | |
''; | |
passthru = { | |
tests.herbstluftwm = nixosTests.herbstluftwm; | |
}; | |
meta = { | |
description = "A manual tiling window manager for X"; | |
homepage = "https://herbstluftwm.org/"; | |
license = stdenv.lib.licenses.bsd2; | |
platforms = stdenv.lib.platforms.linux; | |
maintainers = with stdenv.lib.maintainers; [ thibautmarty ]; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
herbstluftwm = callPackage ./herbstluftwm/default.nix { | |
withDoc = false; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment