2021-01-05 17:05:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, ccnet
|
|
|
|
, curl
|
|
|
|
, fuse
|
|
|
|
, glib
|
|
|
|
, intltool
|
|
|
|
, libevent
|
|
|
|
, libsearpc
|
|
|
|
, libuuid
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, sqlite
|
|
|
|
, vala
|
|
|
|
, which
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "seafile-shared";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "8.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haiwen";
|
|
|
|
repo = "seafile";
|
2021-01-05 17:05:55 +00:00
|
|
|
rev = "d34499a2aafa024623a4210fe7f663cef13fe9a6";
|
|
|
|
sha256 = "VKoGr3CTDFg3Q0X+MTlwa4BbfLB+28FeTyTJRCq37RA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
vala
|
2021-01-05 17:05:55 +00:00
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
python3.pkgs.wrapPython
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libuuid
|
|
|
|
sqlite
|
|
|
|
libsearpc
|
|
|
|
libevent
|
|
|
|
curl
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-server"
|
|
|
|
"--disable-console"
|
2021-01-05 17:05:55 +00:00
|
|
|
"--with-python3"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
pythonPath = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
libsearpc
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 = [ ];
|
|
|
|
};
|
|
|
|
}
|