nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 75 lines 1.8 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchpatch, 5 fetchFromGitHub, 6 pkg-config, 7 cmake, 8 qt6, 9 libuuid, 10 seafile-shared, 11 jansson, 12 libsearpc, 13 withShibboleth ? true, 14}: 15 16stdenv.mkDerivation (finalAttrs: { 17 pname = "seafile-client"; 18 version = "9.0.15"; 19 20 src = fetchFromGitHub { 21 owner = "haiwen"; 22 repo = "seafile-client"; 23 tag = "v${finalAttrs.version}"; 24 hash = "sha256-BV1+9/+ryZB1BQyRJ5JaIU6bbOi4h8vt+V+FQIfUJp8="; 25 }; 26 27 patches = [ 28 # https://github.com/NixOS/nixpkgs/issues/442063 29 (fetchpatch { 30 name = "fix_build_with_QT6.patch"; 31 url = "https://aur.archlinux.org/cgit/aur.git/plain/fix_build_with_QT6.diff?h=seafile-client&id=8bbd6e5017f03dbb368603b4313738b0d783ca2a"; 32 hash = "sha256-N1fepqjTm/M17+TgwNTUecP/wGVlBuZEtTezFgJEeVM="; 33 }) 34 ]; 35 36 postPatch = '' 37 substituteInPlace CMakeLists.txt --replace-fail \ 38 'CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)' \ 39 'CMAKE_MINIMUM_REQUIRED(VERSION 3.10)' 40 ''; 41 42 nativeBuildInputs = [ 43 libuuid 44 pkg-config 45 cmake 46 qt6.wrapQtAppsHook 47 qt6.qttools 48 ]; 49 50 buildInputs = [ 51 qt6.qt5compat 52 seafile-shared 53 jansson 54 libsearpc 55 ] 56 ++ lib.optional withShibboleth qt6.qtwebengine; 57 58 cmakeFlags = lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON"; 59 60 qtWrapperArgs = [ 61 "--suffix PATH : ${lib.makeBinPath [ seafile-shared ]}" 62 ]; 63 64 meta = { 65 homepage = "https://github.com/haiwen/seafile-client"; 66 changelog = "https://github.com/haiwen/seafile-client/releases/tag/${finalAttrs.src.tag}"; 67 description = "Desktop client for Seafile, the Next-generation Open Source Cloud Storage"; 68 license = lib.licenses.asl20; 69 platforms = lib.platforms.linux; 70 maintainers = with lib.maintainers; [ 71 schmittlauch 72 ]; 73 mainProgram = "seafile-applet"; 74 }; 75})