grive: fix build with new binutils headers

This commit is contained in:
Vladimír Čunát 2013-03-09 12:27:38 +01:00
parent f0f34067e7
commit e218c79b85
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,8 @@
{ stdenv, fetchgit, cmake, libgcrypt, json_c, curl, expat, boost, binutils }: { stdenv, fetchgit, cmake, libgcrypt, json_c, curl, expat, boost, binutils }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "grive-0.3.0"; version = "0.3.0";
name = "grive-${version}";
src = fetchgit { src = fetchgit {
url = "https://github.com/Grive/grive.git"; url = "https://github.com/Grive/grive.git";
@ -11,6 +12,13 @@ stdenv.mkDerivation rec {
buildInputs = [cmake libgcrypt json_c curl expat stdenv binutils boost]; buildInputs = [cmake libgcrypt json_c curl expat stdenv binutils boost];
# work around new binutils headers, see
# http://stackoverflow.com/questions/11748035/binutils-bfd-h-wants-config-h-now
prePatch = ''
sed -i '1i#define PACKAGE "grive"\n#define PACKAGE_VERSION "${version}"' \
libgrive/src/bfd/SymbolInfo.cc
'';
meta = { meta = {
description = "an open source (experimental) Linux client for Google Drive"; description = "an open source (experimental) Linux client for Google Drive";
homepage = https://github.com/Grive/grive; homepage = https://github.com/Grive/grive;