2024-02-07 01:22:34 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, autoreconfHook
|
|
|
|
, libuuid
|
|
|
|
, sqlite
|
|
|
|
, glib
|
|
|
|
, libevent
|
|
|
|
, libsearpc
|
|
|
|
, openssl
|
|
|
|
, fuse
|
|
|
|
, libarchive
|
|
|
|
, libjwt
|
|
|
|
, curl
|
|
|
|
, which
|
|
|
|
, vala
|
|
|
|
, cmake
|
|
|
|
, oniguruma
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
# seafile-server relies on a specific version of libevhtp.
|
|
|
|
# It contains non upstreamed patches and is forked off an outdated version.
|
|
|
|
libevhtp = import ./libevhtp.nix {
|
|
|
|
inherit stdenv lib fetchFromGitHub cmake libevent;
|
|
|
|
};
|
2024-02-07 01:22:34 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2021-10-28 06:52:43 +00:00
|
|
|
pname = "seafile-server";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "10.0.1";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haiwen";
|
|
|
|
repo = "seafile-server";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "db09baec1b88fc131bf4453a808ab63a3fc714c9"; # using a fixed revision because upstream may re-tag releases :/
|
|
|
|
sha256 = "sha256-a5vtJcbnaYzq6/3xmhbWk23BZ+Wil/Tb/q22ML4bDqs=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libuuid
|
|
|
|
sqlite
|
|
|
|
openssl
|
|
|
|
glib
|
|
|
|
libsearpc
|
|
|
|
libevent
|
2022-01-03 16:56:52 +00:00
|
|
|
python3
|
2021-10-28 06:52:43 +00:00
|
|
|
fuse
|
|
|
|
libarchive
|
2024-02-07 01:22:34 +00:00
|
|
|
libjwt
|
|
|
|
curl
|
2021-10-28 06:52:43 +00:00
|
|
|
which
|
|
|
|
vala
|
|
|
|
libevhtp
|
|
|
|
oniguruma
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/seafile/sql
|
|
|
|
cp -r scripts/sql $out/share/seafile
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) seafile;
|
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "File syncing and sharing software with file encryption and group sharing, emphasis on reliability and high performance";
|
|
|
|
homepage = "https://github.com/haiwen/seafile-server";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ greizgh schmittlauch ];
|
|
|
|
};
|
|
|
|
}
|