mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
bd01fad0ed
In line with the Nixpkgs manual. A mechanical change, done with this command: find pkgs -name "*.nix" | \ while read f; do \ sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \ done I manually skipped some: * Descriptions starting with an abbreviation, a user name or package name * Frequently generated expressions (haskell-packages.nix)
30 lines
920 B
Nix
30 lines
920 B
Nix
{ stdenv, fetchgit, cmake, libgcrypt, json_c, curl, expat, boost, binutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.3.0";
|
|
name = "grive-${version}";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/Grive/grive.git";
|
|
rev = "51e42914f3666ee6e0bc16a4c78f60b117265c24";
|
|
sha256 = "11cqfcjl128nfg1rjvpvr9x1x2ch3kyliw4vi14n51zqp82f9ysb";
|
|
};
|
|
|
|
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 = {
|
|
description = "An open source (experimental) Linux client for Google Drive";
|
|
homepage = https://github.com/Grive/grive;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|