2012-06-29 15:27:59 +00:00
|
|
|
{ stdenv, fetchgit, cmake, libgcrypt, json_c, curl, expat, boost, binutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-09 11:27:38 +00:00
|
|
|
version = "0.3.0";
|
|
|
|
name = "grive-${version}";
|
2012-06-29 15:27:59 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/Grive/grive.git";
|
2012-07-25 22:48:17 +00:00
|
|
|
rev = "51e42914f3666ee6e0bc16a4c78f60b117265c24";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "11cqfcjl128nfg1rjvpvr9x1x2ch3kyliw4vi14n51zqp82f9ysb";
|
2012-06-29 15:27:59 +00:00
|
|
|
};
|
|
|
|
|
2014-10-01 19:55:40 +00:00
|
|
|
buildInputs = [cmake libgcrypt json_c curl expat stdenv binutils boost];
|
2012-06-29 15:27:59 +00:00
|
|
|
|
2013-03-09 11:27:38 +00: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 15:27:59 +00:00
|
|
|
meta = {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "An open source (experimental) Linux client for Google Drive";
|
2012-06-29 15:27:59 +00:00
|
|
|
homepage = https://github.com/Grive/grive;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-06-29 15:27:59 +00:00
|
|
|
|
2016-08-06 15:29:51 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-06-29 15:27:59 +00:00
|
|
|
};
|
|
|
|
}
|