dde-file-manager: 6.0.23 -> 6.0.31

This commit is contained in:
rewine 2023-09-26 15:33:50 +08:00
parent 9824e03f5e
commit f21a5f646f
No known key found for this signature in database
GPG key ID: 2964FF5514455F51
2 changed files with 28 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, runtimeShell , runtimeShell
, dtkwidget , dtkwidget
, qt5integration , qt5integration
@ -38,17 +39,18 @@
, pcre , pcre
, udisks2 , udisks2
, libisoburn , libisoburn
, gsettings-qt
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dde-file-manager"; pname = "dde-file-manager";
version = "6.0.23"; version = "6.0.31";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxdeepin"; owner = "linuxdeepin";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-H+pCWZ1jj5p3gOKXYyLxSmjCMv5/BPIz5A25JGGzrR8="; hash = "sha256-mc2HcoLrwMXKU8w34KUEh62ZfEIfbJLVzz4JGnUE5EM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -60,6 +62,16 @@ stdenv.mkDerivation rec {
]; ];
dontWrapGApps = true; dontWrapGApps = true;
patches = [
./use_v23_dbus_interface.diff
(fetchpatch {
name = "use-pkgconfig-to-check-mount.patch";
url = "https://github.com/linuxdeepin/dde-file-manager/commit/b6c210057d991591df45b80607a614e7a57a9dc0.patch";
hash = "sha256-k0ZYlOVN3hHs1qvvRaJ3i6okOhDE+DoUKGs9AhSFBGU=";
})
];
postPatch = '' postPatch = ''
patchShebangs . patchShebangs .
@ -115,11 +127,11 @@ stdenv.mkDerivation rec {
pcre pcre
udisks2 udisks2
libisoburn libisoburn
gsettings-qt
]; ];
cmakeFlags = [ cmakeFlags = [
"-DVERSION=${version}" "-DVERSION=${version}"
"-DDEEPIN_OS_VERSION=20"
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e93d3ad..94e3eca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,7 +30,7 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
endif()
#Indentify the version
-if (${DEEPIN_OS_VERSION} MATCHES "23")
+if (TRUE)
add_definitions(-DCOMPILE_ON_V23)
set(COMPLIE_ON_V23 TRUE)
message("COMPILE ON v23")