summary refs log tree commit diff
path: root/pkgs/applications/window-managers/bar/default.nix
blob: 964390d3b59b813afeaa5f118e06c04b412b2d34 (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
{ stdenv, fetchurl, perl, libxcb }:

let
  version = "1.1";
in
  stdenv.mkDerivation rec {
    name = "bar-${version}";
  
    src = fetchurl {
      url = "https://github.com/LemonBoy/bar/archive/v${version}.tar.gz";
      sha256 = "171ciw676cvj80zzbqfbg9nwix36zph0683zmqf279q9b9bmayan";
    };
  
    buildInputs = [ libxcb perl ];
  
    prePatch = ''sed -i "s@/usr@$out@" Makefile'';
  
    meta = {
      description = "A lightweight xcb based bar";
      homepage = https://github.com/LemonBoy/bar;
      maintainers = [ stdenv.lib.maintainers.meisternu ];
      license = "Custom";   
      platforms = stdenv.lib.platforms.linux;
    };
}