summary refs log tree commit diff
path: root/pkgs/development/libraries/gdata-sharp/default.nix
blob: b7043b61c8a62f6dcaffbd9200d2ef273064b87d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ stdenv, fetchsvn, pkgconfig, mono, dotnetPackages }:

let
  newtonsoft-json = dotnetPackages.NewtonsoftJson;
in stdenv.mkDerivation rec {
  pname = "gdata-sharp";
  version = "2.2.0.0";

  src = fetchsvn {
    url = "http://google-gdata.googlecode.com/svn/trunk/";
    rev = "1217";
    sha256 = "0b0rvgg3xsbbg2fdrpz0ywsy9rcahlyfskndaagd3yzm83gi6bhk";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ mono newtonsoft-json ];

  sourceRoot = "svn-r1217/clients/cs";

  dontStrip = true;

  postPatch = ''
    sed -i -e 's#^\(DEFINES=.*\)\(.\)#\1 /r:third_party/Newtonsoft.Json.dll\2#' Makefile
    #             carriage return ^
  '';

  makeFlags = [ "PREFIX=$(out)" ];

  meta = with stdenv.lib; {
    homepage = https://code.google.com/archive/p/google-gdata/;

    description = "The Google Data APIs";
    longDescription = ''
      The Google Data APIs provide a simple protocol for reading and writing
      data on the web.
    '';

    license = licenses.asl20;
    platforms = platforms.linux;
  };
}