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
|
2023-06-26 10:08:02 +00:00
|
|
|
, libwebsockets
|
2020-12-12 11:25:45 +00:00
|
|
|
}:
|
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";
|
2023-06-26 10:08:02 +00:00
|
|
|
version = "9.0.2";
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2018-06-26 21:45:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haiwen";
|
|
|
|
repo = "seafile";
|
2023-06-26 10:08:02 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-aJJVrKulZVa1LNOUBIwuPrWqlsjz7kyP/LXWwxO8++A=";
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
|
2019-11-03 02:43:24 +00:00
|
|
|
nativeBuildInputs = [
|
2023-06-26 10:08:02 +00:00
|
|
|
libwebsockets
|
2019-11-03 02:43:24 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|