depot/third_party/nixpkgs/pkgs/misc/seafile-shared/default.nix

63 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, curl
, libevent
, libsearpc
, libuuid
, pkg-config
, python3
, sqlite
, vala
}:
stdenv.mkDerivation rec {
pname = "seafile-shared";
version = "8.0.3";
src = fetchFromGitHub {
owner = "haiwen";
repo = "seafile";
rev = "v${version}";
sha256 = "F6kLPWZb7FttyAP7pNEn+aRcAjvZlMNXrmuHMYa0Xig=";
};
nativeBuildInputs = [
autoreconfHook
vala
pkg-config
python3
python3.pkgs.wrapPython
];
buildInputs = [
libuuid
sqlite
libsearpc
libevent
curl
];
configureFlags = [
"--disable-server"
"--disable-console"
"--with-python3"
];
pythonPath = with python3.pkgs; [
libsearpc
];
postFixup = ''
wrapPythonPrograms
'';
meta = with lib; {
homepage = "https://github.com/haiwen/seafile";
description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ ];
};
}