summary refs log tree commit diff
path: root/pkgs/applications/window-managers/lemonbar/default.nix
blob: 042abf09dad2298e62dc3333eaae2ac52fd57362 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub, perl, libxcb }:

let
  version = "1.2pre";
in
  stdenv.mkDerivation rec {
    name = "lemonbar-${version}";
  
    src = fetchFromGitHub {
      owner = "LemonBoy";
      repo = "bar";
      rev = "61985278f2af1e4e85d63a696ffedc5616b06bc0";
      sha256 = "0a8djlayimjdg5fj50lpifsv6gkb577bca68wmk9wg9y9n27pgay";
    };
  
    buildInputs = [ libxcb perl ];
  
    prePatch = ''sed -i "s@/usr@$out@" Makefile'';
  
    meta = with stdenv.lib; {
      description = "A lightweight xcb based bar";
      homepage = https://github.com/LemonBoy/bar;
      maintainers = [ maintainers.meisternu ];
      license = "Custom";   
      platforms = platforms.linux;
    };
}