Merge pull request #124031 from fortuneteller2k/lemonbar-xft

This commit is contained in:
Sandro 2021-05-23 17:55:34 +02:00 committed by GitHub
commit 5047c27e2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 19 deletions

View file

@ -1,22 +1,25 @@
{ lib, stdenv, fetchurl, perl, libxcb }:
{ lib, stdenv, fetchFromGitHub, perl, libxcb }:
stdenv.mkDerivation {
name = "lemonbar-1.4";
stdenv.mkDerivation rec {
pname = "lemonbar";
version = "1.4";
src = fetchurl {
url = "https://github.com/LemonBoy/bar/archive/v1.4.tar.gz";
sha256 = "0fa91vb968zh6fyg97kdaix7irvqjqhpsb6ks0ggcl59lkbkdzbv";
src = fetchFromGitHub {
owner = "LemonBoy";
repo = "bar";
rev = "v${version}";
sha256 = "sha256-lmppcnQ8r4jEuhegpTBxYqxfTTS/IrbtQVZ44HqnoWo=";
};
buildInputs = [ libxcb perl ];
prePatch = ''sed -i "s@/usr@$out@" Makefile'';
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
meta = with lib; {
description = "A lightweight xcb based bar";
homepage = "https://github.com/LemonBoy/bar";
maintainers = [ maintainers.meisternu ];
license = "Custom";
maintainers = with maintainers; [ meisternu fortuneteller2k ];
license = licenses.mit;
platforms = platforms.linux;
};
}

View file

@ -1,23 +1,25 @@
{ lib, stdenv, fetchFromGitHub, perl, libxcb, libXft }:
stdenv.mkDerivation {
name = "lemonbar-xft-unstable-2016-02-17";
pname = "lemonbar-xft";
version = "unstable-2020-09-10";
src = fetchFromGitHub {
owner = "krypt-n";
repo = "bar";
rev = "a43b801ddc0f015ce8b1211f4c062fad12cd63a9";
sha256 = "0iqas07qjvabxyvna2m9aj5bcwnkdii1izl9jxha63vz0zlsc4gd";
owner = "drscream";
repo = "lemonbar-xft";
rev = "481e12363e2a0fe0ddd2176a8e003392be90ed02";
sha256 = "sha256-BNYBbUouqqsRQaPkpg+UKg62IV9uI34gKJuiAM94CBU=";
};
buildInputs = [ libxcb libXft perl ];
prePatch = ''sed -i "s@/usr@$out@" Makefile'';
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
meta = {
meta = with lib; {
description = "A lightweight xcb based bar with XFT-support";
homepage = "https://github.com/krypt-n/bar";
license = "Custom";
platforms = lib.platforms.linux;
homepage = "https://github.com/drscream/lemonbar-xft";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ fortuneteller2k ];
};
}