d93fee8b20
The deepin desktop environment requires both qt5 and qt6, deepin scope should not inherit from qt5
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
libsForQt5,
|
|
udisks2-qt5,
|
|
util-linux,
|
|
libnl,
|
|
glib,
|
|
pcre,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "deepin-anything";
|
|
version = "6.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = "deepin-anything";
|
|
rev = version;
|
|
hash = "sha256-OYPsUXMjuU6gG+EzyYl640+2/59n8D5V906CVGwn6Bo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/CMakeLists.txt \
|
|
--replace-fail 'add_subdirectory("kernelmod")' " "
|
|
substituteInPlace src/server/backend/CMakeLists.txt \
|
|
--replace-fail "/usr" "$out" \
|
|
--replace-fail "/etc" "$out/etc"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
libsForQt5.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
udisks2-qt5
|
|
util-linux
|
|
libnl
|
|
glib
|
|
pcre
|
|
];
|
|
|
|
meta = {
|
|
description = "Deepin Anything file search tool";
|
|
homepage = "https://github.com/linuxdeepin/deepin-anything";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = lib.teams.deepin.members;
|
|
};
|
|
}
|