summary refs log tree commit diff
path: root/pkgs/misc/seafile-shared/default.nix
blob: f1ab822c6f4a5d1797c363f7c53554450c2ef80c (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
{stdenv, fetchurl, which, autoreconfHook, pkgconfig, curl, vala, python, intltool, fuse, ccnet}:

stdenv.mkDerivation rec {
  version = "6.1.0";
  name = "seafile-shared-${version}";

  src = fetchurl {
    url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz";
    sha256 = "03zvxk25311xgn383k54qvvpr8xbnl1vxd99fg4ca9yg5rmir1q6";
  };

  nativeBuildInputs = [ pkgconfig which autoreconfHook vala intltool ];
  buildInputs = [ python fuse ];
  propagatedBuildInputs = [ ccnet curl ];

  configureFlags = [
    "--disable-server"
    "--disable-console"
  ];

  postInstall = ''
    # Remove seafile binary
    rm -rf "$out/bin/seafile"
    # Remove cli client binary
    rm -rf "$out/bin/seaf-cli"
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/haiwen/seafile;
    description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons";
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = [ ];
  };
}