diff options
author | Moritz Maxeiner <moritz@ucworks.org> | 2014-02-04 20:02:46 +0100 |
---|---|---|
committer | Moritz Maxeiner <moritz@ucworks.org> | 2014-02-04 20:02:46 +0100 |
commit | 99ba14ee7a94d5f809d024e6fa4bfffba7984040 (patch) | |
tree | d8a9081e28cc909b6eb67e62341859327cd57ead /pkgs/misc/seafile-shared/default.nix | |
parent | e1b206b4a9c895e6684fc948b1526d8759e54328 (diff) |
Add packages for libzdb, libsearpc, ccnet, seafile-shared, and seafile-client
Diffstat (limited to 'pkgs/misc/seafile-shared/default.nix')
-rw-r--r-- | pkgs/misc/seafile-shared/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/misc/seafile-shared/default.nix b/pkgs/misc/seafile-shared/default.nix new file mode 100644 index 000000000000..f392e9ece7ae --- /dev/null +++ b/pkgs/misc/seafile-shared/default.nix @@ -0,0 +1,42 @@ +{stdenv, fetchurl, which, automake, autoconf, pkgconfig, libtool, vala, python, intltool, fuse, ccnet}: + +stdenv.mkDerivation rec +{ + version = "2.1.1"; + name = "seafile-shared-${version}"; + + src = fetchurl + { + url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz"; + sha256 = "f07b09ab1eb1cb33f92cee74e499d0350941624396910a4c1a7d79abb45acaa6"; + }; + + patches = [ ./0003-Add-autoconfiguration-for-libjansson.patch ]; + + buildInputs = [ which automake autoconf pkgconfig libtool vala python intltool fuse ]; + propagatedBuildInputs = [ ccnet ]; + + preConfigure = '' + sed -ie 's|/bin/bash|/bin/sh|g' ./autogen.sh + ./autogen.sh + ''; + + configureFlags = "--disable-server --disable-console"; + + buildPhase = "make -j1"; + + postInstall = '' + # Remove seafile binary + rm -rf "$out/bin/seafile" + # Remove cli client binary + rm -rf "$out/bin/seaf-cli" + ''; + + meta = + { + homepage = "https://github.com/haiwen/seafile"; + description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons"; + license = stdenv.lib.licenses.gpl3; + maintainers = [ stdenv.lib.maintainers.calrama ]; + }; +} |