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