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-01 21:06:14 +00:00
|
|
|
rev = "0fdc14d5175979919b7c741f6bb97bfaaacbbfbe";
|
|
|
|
sha256 = "1cr1hvpp96s5arnzh1r5sazapcghhvbazbf7zym37yp3fy3lpya1";
|
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"
|
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; [
|
2021-04-20 18:01:54 +00:00
|
|
|
future
|
|
|
|
pysearpc
|
2019-11-03 02:43:24 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2021-04-20 18:01:54 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2017-12-19 07:09:01 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-20 18:01:54 +00:00
|
|
|
maintainers = with maintainers; [ greizgh schmittlauch ];
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
}
|