lemonbar: use fetchFromGithub, cleanup
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
f7d9b2016c
commit
0331c3ecf4
2 changed files with 13 additions and 10 deletions
|
@ -1,22 +1,25 @@
|
||||||
{ lib, stdenv, fetchurl, perl, libxcb }:
|
{ lib, stdenv, fetchFromGitHub, perl, libxcb }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "lemonbar-1.4";
|
pname = "lemonbar";
|
||||||
|
version = "1.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/LemonBoy/bar/archive/v1.4.tar.gz";
|
owner = "LemonBoy";
|
||||||
sha256 = "0fa91vb968zh6fyg97kdaix7irvqjqhpsb6ks0ggcl59lkbkdzbv";
|
repo = "bar";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-lmppcnQ8r4jEuhegpTBxYqxfTTS/IrbtQVZ44HqnoWo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libxcb perl ];
|
buildInputs = [ libxcb perl ];
|
||||||
|
|
||||||
prePatch = ''sed -i "s@/usr@$out@" Makefile'';
|
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A lightweight xcb based bar";
|
description = "A lightweight xcb based bar";
|
||||||
homepage = "https://github.com/LemonBoy/bar";
|
homepage = "https://github.com/LemonBoy/bar";
|
||||||
maintainers = [ maintainers.meisternu ];
|
maintainers = with maintainers; [ meisternu fortuneteller2k ];
|
||||||
license = "Custom";
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A lightweight xcb based bar with XFT-support";
|
description = "A lightweight xcb based bar with XFT-support";
|
||||||
homepage = "https://github.com/drscream/bar";
|
homepage = "https://github.com/drscream/lemonbar-xft";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ fortuneteller2k ];
|
maintainers = with maintainers; [ fortuneteller2k ];
|
||||||
|
|
Loading…
Reference in a new issue