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";
|
2020-12-12 11:25:45 +00:00
|
|
|
version = "8.0.1";
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2018-06-26 21:45:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haiwen";
|
|
|
|
repo = "seafile";
|
2020-12-12 11:25:45 +00:00
|
|
|
rev = "d34499a2aafa024623a4210fe7f663cef13fe9a6";
|
|
|
|
sha256 = "VKoGr3CTDFg3Q0X+MTlwa4BbfLB+28FeTyTJRCq37RA=";
|
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
|
|
|
};
|
|
|
|
}
|