yabar: add unstable
package
This commit is contained in:
parent
12e79f1358
commit
178251001a
51
pkgs/applications/window-managers/yabar/build.nix
Normal file
51
pkgs/applications/window-managers/yabar/build.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, cairo, gdk_pixbuf, libconfig, pango, pkgconfig
|
||||||
|
, xcbutilwm, alsaLib, wirelesstools, asciidoc, libxslt, makeWrapper, docbook_xsl
|
||||||
|
, configFile ? null, lib
|
||||||
|
, rev, sha256, version
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "yabar-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
inherit rev sha256;
|
||||||
|
|
||||||
|
owner = "geommer";
|
||||||
|
repo = "yabar";
|
||||||
|
};
|
||||||
|
|
||||||
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
cairo gdk_pixbuf libconfig pango pkgconfig xcbutilwm docbook_xsl
|
||||||
|
alsaLib wirelesstools asciidoc libxslt makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace ./Makefile \
|
||||||
|
--replace "\$(shell git describe)" "${version}" \
|
||||||
|
--replace "a2x" "${asciidoc}/bin/a2x --no-xmllint"
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/yabar/examples
|
||||||
|
cp -v examples/*.config $out/share/yabar/examples
|
||||||
|
|
||||||
|
${lib.optionalString (configFile != null)
|
||||||
|
''
|
||||||
|
wrapProgram "$out/bin/yabar" \
|
||||||
|
--add-flags "-c ${configFile}"
|
||||||
|
''
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A modern and lightweight status bar for X window managers";
|
||||||
|
homepage = https://github.com/geommer/yabar;
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ ma27 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,49 +1,10 @@
|
|||||||
{ stdenv, fetchFromGitHub, cairo, gdk_pixbuf, libconfig, pango, pkgconfig
|
{ callPackage, attrs ? {} }:
|
||||||
, xcbutilwm, alsaLib, wirelesstools, asciidoc, libxslt, makeWrapper
|
|
||||||
, configFile ? null, lib
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "yabar-${version}";
|
overrides = {
|
||||||
version = "2017-09-09";
|
version = "0.4.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
rev = "746387f0112f9b7aa2e2e27b3d69cb2892d8c63b";
|
||||||
owner = "geommer";
|
sha256 = "1nw9dar1caqln5fr0dqk7dg6naazbpfwwzxwlkxz42shsc3w30a6";
|
||||||
repo = "yabar";
|
} // attrs;
|
||||||
rev = "d3934344ba27f5bdf122bf74daacee6d49284dab";
|
in callPackage ./build.nix overrides
|
||||||
sha256 = "14zrlzva8i83ffg426mrf6yli8afwq6chvc7yi78ngixyik5gzhx";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
cairo gdk_pixbuf libconfig pango pkgconfig xcbutilwm
|
|
||||||
alsaLib wirelesstools asciidoc libxslt makeWrapper
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace ./Makefile \
|
|
||||||
--replace "\$(shell git describe)" "${version}" \
|
|
||||||
--replace "a2x" "${asciidoc}/bin/a2x --no-xmllint"
|
|
||||||
'';
|
|
||||||
|
|
||||||
makeFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mkdir -p $out/share/yabar/examples
|
|
||||||
cp -v examples/*.config $out/share/yabar/examples
|
|
||||||
|
|
||||||
${lib.optionalString (configFile != null)
|
|
||||||
''
|
|
||||||
wrapProgram "$out/bin/yabar" \
|
|
||||||
--add-flags "-c ${configFile}"
|
|
||||||
''
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "A modern and lightweight status bar for X window managers";
|
|
||||||
homepage = https://github.com/geommer/yabar;
|
|
||||||
license = licenses.mit;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ ma27 ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
10
pkgs/applications/window-managers/yabar/unstable.nix
Normal file
10
pkgs/applications/window-managers/yabar/unstable.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ callPackage, attrs ? {} }:
|
||||||
|
|
||||||
|
let
|
||||||
|
overrides = {
|
||||||
|
version = "unstable-2017-09-09";
|
||||||
|
|
||||||
|
rev = "d3934344ba27f5bdf122bf74daacee6d49284dab";
|
||||||
|
sha256 = "14zrlzva8i83ffg426mrf6yli8afwq6chvc7yi78ngixyik5gzhx";
|
||||||
|
} // attrs;
|
||||||
|
in callPackage ./build.nix overrides
|
@ -17148,6 +17148,8 @@ with pkgs;
|
|||||||
|
|
||||||
yabar = callPackage ../applications/window-managers/yabar { };
|
yabar = callPackage ../applications/window-managers/yabar { };
|
||||||
|
|
||||||
|
yabar-unstable = callPackage ../applications/window-managers/yabar/unstable.nix { };
|
||||||
|
|
||||||
yakuake = libsForQt5.callPackage ../applications/misc/yakuake {
|
yakuake = libsForQt5.callPackage ../applications/misc/yakuake {
|
||||||
inherit (kdeApplications) konsole;
|
inherit (kdeApplications) konsole;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user