3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/seafile-server/default.nix

57 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, pkg-config, python3, autoreconfHook
2021-04-20 19:04:55 +01:00
, libuuid, sqlite, glib, libevent, libsearpc, openssl, fuse, libarchive, which
2022-01-30 22:00:33 +00:00
, vala, cmake, oniguruma, nixosTests }:
2021-04-20 19:04:55 +01: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;
};
in stdenv.mkDerivation rec {
pname = "seafile-server";
2022-01-20 18:44:46 +00:00
version = "8.0.8";
2021-04-20 19:04:55 +01:00
src = fetchFromGitHub {
owner = "haiwen";
repo = "seafile-server";
2022-01-20 18:44:46 +00:00
rev = "807867afb7a86f526a6584278914ce9f3f51d1da";
sha256 = "1nq6dw4xzifbyhxn7yn5398q2sip1p1xwqz6xbis4nzgx4jldd4g";
2021-04-20 19:04:55 +01:00
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [
libuuid
sqlite
openssl
glib
libsearpc
libevent
python3
2021-04-20 19:04:55 +01:00
fuse
libarchive
which
vala
libevhtp
oniguruma
];
postInstall = ''
mkdir -p $out/share/seafile/sql
cp -r scripts/sql $out/share/seafile
'';
2022-01-30 22:00:33 +00:00
passthru.tests = {
inherit (nixosTests) seafile;
};
2021-04-20 19:04:55 +01: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 ];
};
}