mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
Changelog: https://manual.seafile.com/latest/changelog/client-changelog/#9019-20260625 Contains a fix for an SQL injection vulnerability.
78 lines
1.8 KiB
Nix
78 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchpatch,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
pkg-config,
|
|
cmake,
|
|
qt6,
|
|
libuuid,
|
|
seafile-shared,
|
|
jansson,
|
|
libsearpc,
|
|
withShibboleth ? true,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "seafile-client";
|
|
version = "9.0.20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "haiwen";
|
|
repo = "seafile-client";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-0idZCoTsuC32DolSLFDknQjvGWHGd4DQPCUyqocuuKA=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/NixOS/nixpkgs/issues/442063
|
|
(fetchpatch {
|
|
name = "fix_build_with_QT6.patch";
|
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/fix_build_with_QT6.diff?h=seafile-client&id=8bbd6e5017f03dbb368603b4313738b0d783ca2a";
|
|
hash = "sha256-N1fepqjTm/M17+TgwNTUecP/wGVlBuZEtTezFgJEeVM=";
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt --replace-fail \
|
|
'CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)' \
|
|
'CMAKE_MINIMUM_REQUIRED(VERSION 3.10)'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
libuuid
|
|
pkg-config
|
|
cmake
|
|
qt6.wrapQtAppsHook
|
|
qt6.qttools
|
|
];
|
|
|
|
buildInputs = [
|
|
qt6.qt5compat
|
|
seafile-shared
|
|
jansson
|
|
libsearpc
|
|
]
|
|
++ lib.optional withShibboleth qt6.qtwebengine;
|
|
|
|
cmakeFlags = lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
|
|
|
|
qtWrapperArgs = [
|
|
"--suffix PATH : ${lib.makeBinPath [ seafile-shared ]}"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/haiwen/seafile-client";
|
|
changelog = "https://github.com/haiwen/seafile-client/releases/tag/${finalAttrs.src.tag}";
|
|
description = "Desktop client for Seafile, the Next-generation Open Source Cloud Storage";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [
|
|
schmittlauch
|
|
];
|
|
mainProgram = "seafile-applet";
|
|
};
|
|
passthru.updateScript = nix-update-script { };
|
|
})
|