polybar: 3.5.2 -> 3.5.5

This commit is contained in:
fortuneteller2k 2021-04-21 11:10:35 +08:00
parent 5bc2962319
commit 20c9bed8b7

View File

@ -7,6 +7,7 @@
, pcre , pcre
, pkg-config , pkg-config
, python3 , python3
, python3Packages # sphinx-build
, lib , lib
, stdenv , stdenv
, xcbproto , xcbproto
@ -23,7 +24,7 @@
# disable modules # disable modules
, alsaSupport ? true, alsaLib ? null , alsaSupport ? true, alsaLib ? null
, githubSupport ? false, curl ? null , githubSupport ? false, curl ? null
, mpdSupport ? false, libmpdclient ? null , mpdSupport ? false, libmpdclient ? null
, pulseSupport ? false, libpulseaudio ? null , pulseSupport ? false, libpulseaudio ? null
, iwSupport ? false, wirelesstools ? null , iwSupport ? false, wirelesstools ? null
, nlSupport ? true, libnl ? null , nlSupport ? true, libnl ? null
@ -32,7 +33,7 @@
assert alsaSupport -> alsaLib != null; assert alsaSupport -> alsaLib != null;
assert githubSupport -> curl != null; assert githubSupport -> curl != null;
assert mpdSupport -> libmpdclient != null; assert mpdSupport -> libmpdclient != null;
assert pulseSupport -> libpulseaudio != null; assert pulseSupport -> libpulseaudio != null;
assert iwSupport -> ! nlSupport && wirelesstools != null; assert iwSupport -> ! nlSupport && wirelesstools != null;
@ -43,16 +44,25 @@ assert i3GapsSupport -> ! i3Support && jsoncpp != null && i3-gaps != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "polybar"; pname = "polybar";
version = "3.5.2"; version = "3.5.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1ir8fdnzrba9fkkjfvax5szx5h49lavwgl9pabjzrpbvif328g3x"; sha256 = "sha256-oRtTm5bXdL0C2WJsaK8H2Oc40DPWgAfjP7FgIHrpKGI=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [
cmake
pkg-config
python3Packages.sphinx
removeReferencesTo
(if i3Support || i3GapsSupport then makeWrapper else null)
];
buildInputs = [ buildInputs = [
cairo cairo
libXdmcp libXdmcp
@ -79,8 +89,6 @@ stdenv.mkDerivation rec {
(if i3Support || i3GapsSupport then jsoncpp else null) (if i3Support || i3GapsSupport then jsoncpp else null)
(if i3Support then i3 else null) (if i3Support then i3 else null)
(if i3GapsSupport then i3-gaps else null) (if i3GapsSupport then i3-gaps else null)
(if i3Support || i3GapsSupport then makeWrapper else null)
]; ];
postInstall = if i3Support postInstall = if i3Support
@ -93,18 +101,13 @@ stdenv.mkDerivation rec {
'' ''
else ''''; else '''';
nativeBuildInputs = [
cmake
pkg-config
removeReferencesTo
];
postFixup = '' postFixup = ''
remove-references-to -t ${stdenv.cc} $out/bin/polybar remove-references-to -t ${stdenv.cc} $out/bin/polybar
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://polybar.github.io/"; homepage = "https://polybar.github.io/";
changelog = "https://github.com/polybar/polybar/releases/tag/${version}";
description = "A fast and easy-to-use tool for creating status bars"; description = "A fast and easy-to-use tool for creating status bars";
longDescription = '' longDescription = ''
Polybar aims to help users build beautiful and highly customizable Polybar aims to help users build beautiful and highly customizable
@ -112,7 +115,7 @@ stdenv.mkDerivation rec {
having a black belt in shell scripting. having a black belt in shell scripting.
''; '';
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ afldcr Br1ght0ne ]; maintainers = with maintainers; [ afldcr Br1ght0ne fortuneteller2k ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }