polybar: mpd_clientlib -> libmpdclient

+60 -26
+60 -26
pkgs/applications/misc/polybar/default.nix
··· 1 - { cairo, cmake, fetchFromGitHub, libXdmcp, libpthreadstubs, libxcb, pcre, pkg-config 2 - , python3, lib, stdenv, xcbproto, xcbutil, xcbutilcursor, xcbutilimage 3 - , xcbutilrenderutil, xcbutilwm, xcbutilxrm, makeWrapper 1 + { cairo 2 + , cmake 3 + , fetchFromGitHub 4 + , libXdmcp 5 + , libpthreadstubs 6 + , libxcb 7 + , pcre 8 + , pkg-config 9 + , python3 10 + , lib 11 + , stdenv 12 + , xcbproto 13 + , xcbutil 14 + , xcbutilcursor 15 + , xcbutilimage 16 + , xcbutilrenderutil 17 + , xcbutilwm 18 + , xcbutilxrm 19 + , makeWrapper 4 20 , removeReferencesTo 5 21 6 22 # optional packages-- override the variables ending in 'Support' to enable or 7 23 # disable modules 8 24 , alsaSupport ? true, alsaLib ? null 9 25 , githubSupport ? false, curl ? null 10 - , mpdSupport ? false, mpd_clientlib ? null 26 + , mpdSupport ? false, libmpdclient ? null 11 27 , pulseSupport ? false, libpulseaudio ? null 12 28 , iwSupport ? false, wirelesstools ? null 13 29 , nlSupport ? true, libnl ? null ··· 16 32 17 33 assert alsaSupport -> alsaLib != null; 18 34 assert githubSupport -> curl != null; 19 - assert mpdSupport -> mpd_clientlib != null; 35 + assert mpdSupport -> libmpdclient != null; 20 36 assert pulseSupport -> libpulseaudio != null; 21 37 22 38 assert iwSupport -> ! nlSupport && wirelesstools != null; ··· 37 53 fetchSubmodules = true; 38 54 }; 39 55 40 - meta = with lib; { 41 - homepage = "https://polybar.github.io/"; 42 - description = "A fast and easy-to-use tool for creating status bars"; 43 - longDescription = '' 44 - Polybar aims to help users build beautiful and highly customizable 45 - status bars for their desktop environment, without the need of 46 - having a black belt in shell scripting. 47 - ''; 48 - license = licenses.mit; 49 - maintainers = with maintainers; [ afldcr Br1ght0ne ]; 50 - platforms = platforms.linux; 51 - }; 52 - 53 56 buildInputs = [ 54 - cairo libXdmcp libpthreadstubs libxcb pcre python3 xcbproto xcbutil 55 - xcbutilcursor xcbutilimage xcbutilrenderutil xcbutilwm xcbutilxrm 57 + cairo 58 + libXdmcp 59 + libpthreadstubs 60 + libxcb 61 + pcre 62 + python3 63 + xcbproto 64 + xcbutil 65 + xcbutilcursor 66 + xcbutilimage 67 + xcbutilrenderutil 68 + xcbutilwm 69 + xcbutilxrm 56 70 57 71 (if alsaSupport then alsaLib else null) 58 72 (if githubSupport then curl else null) 59 - (if mpdSupport then mpd_clientlib else null) 73 + (if mpdSupport then libmpdclient else null) 60 74 (if pulseSupport then libpulseaudio else null) 61 75 62 76 (if iwSupport then wirelesstools else null) ··· 69 83 (if i3Support || i3GapsSupport then makeWrapper else null) 70 84 ]; 71 85 72 - postInstall = if (i3Support || i3GapsSupport) then '' 73 - wrapProgram $out/bin/polybar \ 74 - --prefix PATH : "${if i3Support then i3 else i3-gaps}/bin" 75 - '' else ""; 86 + postInstall = if i3Support 87 + then ''wrapProgram $out/bin/polybar \ 88 + --prefix PATH : "${i3}/bin" 89 + '' 90 + else if i3GapsSupport 91 + then ''wrapProgram $out/bin/polybar \ 92 + --prefix PATH : "${i3-gaps}/bin" 93 + '' 94 + else ''''; 76 95 77 96 nativeBuildInputs = [ 78 - cmake pkg-config removeReferencesTo 97 + cmake 98 + pkg-config 99 + removeReferencesTo 79 100 ]; 80 101 81 102 postFixup = '' 82 103 remove-references-to -t ${stdenv.cc} $out/bin/polybar 83 104 ''; 105 + 106 + meta = with lib; { 107 + homepage = "https://polybar.github.io/"; 108 + description = "A fast and easy-to-use tool for creating status bars"; 109 + longDescription = '' 110 + Polybar aims to help users build beautiful and highly customizable 111 + status bars for their desktop environment, without the need of 112 + having a black belt in shell scripting. 113 + ''; 114 + license = licenses.mit; 115 + maintainers = with maintainers; [ afldcr Br1ght0ne ]; 116 + platforms = platforms.linux; 117 + }; 84 118 }