Remove unnecessary dependencies and centralize version string.
This commit is contained in:
parent
785ed2b528
commit
df8e7f5614
@ -1,15 +1,17 @@
|
|||||||
{ stdenv, fetchurl, git, perl, libxcb, libXinerama, xcbutil, xcbutilwm, xcbutilkeysyms }:
|
{ stdenv, fetchurl, perl, libxcb }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "1.0";
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "bar-1.0";
|
name = "bar-${version}";
|
||||||
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/LemonBoy/bar/archive/v1.0.tar.gz";
|
url = "https://github.com/LemonBoy/bar/archive/v${version}.tar.gz";
|
||||||
sha256 = "1n2vak2acs37sslxl250cnz9c3irif5z4s54wi9qjyxbfzr2h2nc";
|
sha256 = "1n2vak2acs37sslxl250cnz9c3irif5z4s54wi9qjyxbfzr2h2nc";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libxcb git perl libXinerama xcbutil xcbutilkeysyms xcbutilwm ];
|
buildInputs = [ libxcb perl ];
|
||||||
|
|
||||||
prePatch = ''sed -i "s@/usr@$out@" Makefile'';
|
prePatch = ''sed -i "s@/usr@$out@" Makefile'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user