2012-06-29 17:27:59 +02:00
|
|
|
{ stdenv, fetchgit, cmake, libgcrypt, json_c, curl, expat, boost, binutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-09 12:27:38 +01:00
|
|
|
version = "0.3.0";
|
|
|
|
name = "grive-${version}";
|
2012-06-29 17:27:59 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/Grive/grive.git";
|
2012-07-26 00:48:17 +02:00
|
|
|
rev = "51e42914f3666ee6e0bc16a4c78f60b117265c24";
|
|
|
|
sha256 = "f2b978cc93a2d16262c7b78c62019b2a58044eaef4ca95feaa74dfd4dfcbfa36";
|
2012-06-29 17:27:59 +02:00
|
|
|
};
|
|
|
|
|
2014-09-19 19:56:08 +02:00
|
|
|
buildInputs = [cmake libgcrypt json_c curl expat stdenv binutils boost boost.lib];
|
2012-06-29 17:27:59 +02:00
|
|
|
|
2013-03-09 12:27:38 +01:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2012-06-29 17:27:59 +02:00
|
|
|
meta = {
|
|
|
|
description = "an open source (experimental) Linux client for Google Drive";
|
|
|
|
homepage = https://github.com/Grive/grive;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-06-29 17:27:59 +02:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|