2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-12-12 11:25:45 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, curl
|
|
|
|
, libevent
|
|
|
|
, libsearpc
|
|
|
|
, libuuid
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, sqlite
|
|
|
|
, vala
|
|
|
|
}:
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2017-12-19 07:09:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "seafile-shared";
|
2021-06-30 14:08:51 +00:00
|
|
|
version = "8.0.3";
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2018-06-26 21:45:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haiwen";
|
|
|
|
repo = "seafile";
|
2021-06-30 14:08:51 +00:00
|
|
|
rev = "v${version}";
|
2021-07-03 10:38:52 +00:00
|
|
|
sha256 = "QflLh3fj+jOq/8etr9aG8LGrvtIlB/htVkWbdO+GIbM=";
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
|
2019-11-03 02:43:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
vala
|
2020-12-12 11:25:45 +00:00
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
python3.pkgs.wrapPython
|
2019-11-03 02:43:24 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libuuid
|
|
|
|
sqlite
|
|
|
|
libsearpc
|
|
|
|
libevent
|
|
|
|
curl
|
|
|
|
];
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2017-12-19 07:09:01 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-server"
|
|
|
|
"--disable-console"
|
2020-12-12 11:25:45 +00:00
|
|
|
"--with-python3"
|
2017-12-19 07:09:01 +00:00
|
|
|
];
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2020-12-12 11:25:45 +00:00
|
|
|
pythonPath = with python3.pkgs; [
|
2019-11-03 02:43:24 +00:00
|
|
|
libsearpc
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-03 02:43:24 +00:00
|
|
|
homepage = "https://github.com/haiwen/seafile";
|
2014-02-04 19:02:46 +00:00
|
|
|
description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons";
|
2017-12-19 07:09:01 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2018-03-10 23:46:41 +00:00
|
|
|
maintainers = [ ];
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
}
|