biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / window-managers / i3 / default.nix
blobd7f1bc2176a8c985b0757b5dcbb585722d91bbd0
1 { fetchurl, lib, stdenv, pkg-config, makeWrapper, meson, ninja, installShellFiles, libxcb, xcbutilkeysyms
2 , xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification, libX11, pcre2, libev
3 , yajl, xcb-util-cursor, perl, pango, perlPackages, libxkbcommon
4 , xorgserver, xvfb-run
5 , asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, findXMLCatalogs
6 }:
8 stdenv.mkDerivation rec {
9   pname = "i3";
10   version = "4.23";
12   src = fetchurl {
13     url = "https://i3wm.org/downloads/${pname}-${version}.tar.xz";
14     sha256 = "sha256-YQJqcZbJE50POq3ScZfosyDFduOkUOAddMGspIQETEY=";
15   };
17   nativeBuildInputs = [
18     pkg-config makeWrapper meson ninja installShellFiles perl
19     asciidoc xmlto docbook_xml_dtd_45 docbook_xsl findXMLCatalogs
20   ];
22   mesonFlags = [
23     "-Ddocs=true"
24     "-Dmans=true"
25   ];
27   buildInputs = [
28     libxcb xcbutilkeysyms xcbutil xcbutilwm xcbutilxrm libxkbcommon
29     libstartup_notification libX11 pcre2 libev yajl xcb-util-cursor perl pango
30     perlPackages.AnyEventI3 perlPackages.X11XCB perlPackages.IPCRun
31     perlPackages.ExtUtilsPkgConfig perlPackages.InlineC
32     xorgserver xvfb-run
33   ];
35   configureFlags = [ "--disable-builddir" ];
37   postPatch = ''
38     patchShebangs .
39   '';
41   # Tests have been failing (at least for some people in some cases)
42   # and have been disabled until someone wants to fix them. Some
43   # initial digging uncovers that the tests call out to `git`, which
44   # they shouldn't, and then even once that's fixed have some
45   # perl-related errors later on. For more, see
46   # https://github.com/NixOS/nixpkgs/issues/7957
47   doCheck = false; # stdenv.hostPlatform.system == "x86_64-linux";
49   checkPhase = lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux")
50   ''
51     (cd testcases && xvfb-run ./complete-run.pl -p 1 --keep-xserver-output)
52     ! grep -q '^not ok' testcases/latest/complete-run.log
53   '';
55   postInstall = ''
56     wrapProgram "$out/bin/i3-save-tree" --prefix PERL5LIB ":" "$PERL5LIB"
57     for program in $out/bin/i3-sensible-*; do
58       sed -i 's/which/command -v/' $program
59     done
61     installManPage man/*.1
62   '';
64   separateDebugInfo = true;
66   meta = with lib; {
67     description = "A tiling window manager";
68     homepage    = "https://i3wm.org";
69     maintainers = with maintainers; [ modulistic fpletz ];
70     mainProgram = "i3";
71     license     = licenses.bsd3;
72     platforms   = platforms.all;
74     longDescription = ''
75       A tiling window manager primarily targeted at advanced users and
76       developers. Based on a tree as data structure, supports tiling,
77       stacking, and tabbing layouts, handled dynamically, as well as
78       floating windows. Configured via plain text file. Multi-monitor.
79       UTF-8 clean.
80     '';
81   };