Merge pull request #67367 from jtojnar/nextcloud-cleanup
nextcloud-client: clean up
This commit is contained in:
commit
5f202e0b22
@ -16,7 +16,7 @@ index 1f35335..7f76951 100644
|
|||||||
|
|
||||||
macro(dbus_add_activation_service _sources)
|
macro(dbus_add_activation_service _sources)
|
||||||
- PKGCONFIG_GETVAR(dbus-1 session_bus_services_dir _install_dir)
|
- PKGCONFIG_GETVAR(dbus-1 session_bus_services_dir _install_dir)
|
||||||
+ set(_install_dir "${CMAKE_INSTALL_PREFIX}/etc/dbus-1/service")
|
+ set(_install_dir "${CMAKE_INSTALL_DATADIR}/dbus-1/service")
|
||||||
foreach (_i ${_sources})
|
foreach (_i ${_sources})
|
||||||
get_filename_component(_service_file ${_i} ABSOLUTE)
|
get_filename_component(_service_file ${_i} ABSOLUTE)
|
||||||
string(REGEX REPLACE "\\.service.*$" ".service" _output_file ${_i})
|
string(REGEX REPLACE "\\.service.*$" ".service" _output_file ${_i})
|
||||||
|
@ -1,48 +1,61 @@
|
|||||||
{ lib, mkDerivation, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, qttools, sqlite
|
{ lib
|
||||||
, inotify-tools, openssl, pcre, qtwebengine, libsecret
|
, mkDerivation
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, inotify-tools
|
||||||
, libcloudproviders
|
, libcloudproviders
|
||||||
|
, libsecret
|
||||||
|
, openssl
|
||||||
|
, pcre
|
||||||
|
, pkgconfig
|
||||||
|
, qtbase
|
||||||
|
, qtkeychain
|
||||||
|
, qttools
|
||||||
|
, qtwebengine
|
||||||
|
, qtwebkit
|
||||||
|
, sqlite
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
name = "nextcloud-client-${version}";
|
pname = "nextcloud-client";
|
||||||
version = "2.5.3";
|
version = "2.5.3";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = "git://github.com/nextcloud/desktop.git";
|
owner = "nextcloud";
|
||||||
rev = "refs/tags/v${version}";
|
repo = "desktop";
|
||||||
sha256 = "0fbw56bfbyk3cqv94iqfsxjf01dwy1ysjz89dri7qccs65rnjswj";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
sha256 = "1pzlq507fasf2ljf37gkw00qrig4w2r712rsy05zfwlncgcn7fnw";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
|
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig cmake ];
|
nativeBuildInputs = [
|
||||||
|
pkgconfig
|
||||||
|
cmake
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ qtbase qtwebkit qtkeychain qttools qtwebengine sqlite openssl.out pcre inotify-tools libcloudproviders ];
|
buildInputs = [
|
||||||
|
inotify-tools
|
||||||
enableParallelBuilding = true;
|
libcloudproviders
|
||||||
|
openssl
|
||||||
NIX_LDFLAGS = "${openssl.out}/lib/libssl.so ${openssl.out}/lib/libcrypto.so";
|
pcre
|
||||||
|
qtbase
|
||||||
cmakeFlags = [
|
qtkeychain
|
||||||
"-UCMAKE_INSTALL_LIBDIR"
|
qttools
|
||||||
"-DCMAKE_BUILD_TYPE=Release"
|
qtwebengine
|
||||||
"-DOPENSSL_LIBRARIES=${openssl.out}/lib"
|
qtwebkit
|
||||||
"-DOPENSSL_INCLUDE_DIR=${openssl.dev}/include"
|
sqlite
|
||||||
"-DINOTIFY_LIBRARY=${inotify-tools}/lib/libinotifytools.so"
|
|
||||||
"-DINOTIFY_INCLUDE_DIR=${inotify-tools}/include"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
qtWrapperArgs = [
|
qtWrapperArgs = [
|
||||||
''--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}''
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
cmakeFlags = [
|
||||||
sed -i 's/\(Icon.*\)=nextcloud/\1=Nextcloud/g' \
|
"-DCMAKE_INSTALL_LIBDIR=lib" # expected to be prefix-relative by build code setting RPATH
|
||||||
$out/share/applications/nextcloud.desktop
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Nextcloud themed desktop client";
|
description = "Nextcloud themed desktop client";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user