depot/third_party/nixpkgs/pkgs/by-name/se/seafile-server/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

93 lines
1.7 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
pkg-config,
python3,
autoreconfHook,
libuuid,
libmysqlclient,
sqlite,
glib,
libevent,
libsearpc,
openssl,
fuse,
libarchive,
libjwt,
curl,
which,
vala,
cmake,
oniguruma,
nixosTests,
}:
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 {
pname = "seafile-server";
version = "11.0.12";
src = fetchFromGitHub {
owner = "haiwen";
repo = "seafile-server";
rev = "5e6c0974e6abe5d92b8ba1db41c6ddbc1029f2d5"; # using a fixed revision because upstream may re-tag releases :/
hash = "sha256-BVa4QZiHPkqRB5FvDlCSbEVxdnyxVy2KuCDb2orRMuI=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
libuuid
libmysqlclient
sqlite
glib
libsearpc
libevent
python3
fuse
libarchive
libjwt
which
vala
libevhtp
oniguruma
];
postInstall = ''
mkdir -p $out/share/seafile/sql
cp -r scripts/sql $out/share/seafile
'';
passthru.tests = {
inherit (nixosTests) seafile;
};
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
melvyn2
];
mainProgram = "seaf-server";
};
}