Merge pull request #3598 from vesten/update-bar-aint-recursive

bar - Remove unnecessary dependencies and centralize version string.
This commit is contained in:
Peter Simons 2014-08-15 18:29:49 +02:00
commit 70683f4593

View File

@ -1,23 +1,25 @@
{ stdenv, fetchurl, git, perl, libxcb, libXinerama, xcbutil, xcbutilwm, xcbutilkeysyms }: { stdenv, fetchurl, perl, libxcb }:
stdenv.mkDerivation rec { let
name = "bar-1.0"; version = "1.0";
in
stdenv.mkDerivation rec {
name = "bar-${version}";
src = fetchurl {
url = "https://github.com/LemonBoy/bar/archive/v${version}.tar.gz";
sha256 = "1n2vak2acs37sslxl250cnz9c3irif5z4s54wi9qjyxbfzr2h2nc";
};
src = fetchurl { buildInputs = [ libxcb perl ];
url = "https://github.com/LemonBoy/bar/archive/v1.0.tar.gz";
sha256 = "1n2vak2acs37sslxl250cnz9c3irif5z4s54wi9qjyxbfzr2h2nc";
};
buildInputs = [ libxcb git perl libXinerama xcbutil xcbutilkeysyms xcbutilwm ]; prePatch = ''sed -i "s@/usr@$out@" Makefile'';
prePatch = ''sed -i "s@/usr@$out@" Makefile''; meta = {
description = "A lightweight xcb based bar";
meta = { homepage = "https://github.com/LemonBoy/bar";
description = "A lightweight xcb based bar"; maintainers = stdenv.lib.maintainers.meisternu;
homepage = "https://github.com/LemonBoy/bar"; license = "Custom";
maintainers = stdenv.lib.maintainers.meisternu; platforms = stdenv.lib.platforms.linux;
license = "Custom"; };
platforms = stdenv.lib.platforms.linux;
};
} }