git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
82 lines
1.8 KiB
Nix
82 lines
1.8 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
libsForQt5,
|
|
pkg-config,
|
|
dtkwidget,
|
|
dde-qt-dbus-factory,
|
|
dde-tray-loader,
|
|
deepin-pdfium,
|
|
qt5integration,
|
|
qt5platform-plugins,
|
|
taglib,
|
|
ffmpeg,
|
|
ffmpegthumbnailer,
|
|
pcre,
|
|
lucenepp,
|
|
boost,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dde-grand-search";
|
|
version = "5.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-6s6M0cL8gjq1B5tuIRGPi8D69p4T8hPJv5QvBIvsO1w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
libsForQt5.qttools
|
|
pkg-config
|
|
libsForQt5.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
dtkwidget
|
|
dde-tray-loader
|
|
dde-qt-dbus-factory
|
|
deepin-pdfium
|
|
qt5integration
|
|
qt5platform-plugins
|
|
taglib
|
|
ffmpeg
|
|
ffmpegthumbnailer
|
|
pcre
|
|
lucenepp
|
|
boost
|
|
];
|
|
|
|
patches = [
|
|
# This patch revert the commit e6735e7
|
|
# FIXME: why StartManager can't work, is dde-api-proxy still required?
|
|
./fix-dbus-path-for-daemon.diff
|
|
];
|
|
|
|
postPatch = ''
|
|
# fix access permit to daemon
|
|
substituteInPlace src/libgrand-search-daemon/dbusservice/grandsearchinterface.cpp \
|
|
--replace-fail "/usr/bin/dde-grand-search" "$out/bin/.dde-grand-search-wrapped"
|
|
|
|
for file in $(grep -rl "/usr/bin/dde-grand-search"); do
|
|
substituteInPlace $file --replace-fail "/usr/bin/dde-grand-search" "$out/bin/dde-grand-search"
|
|
done
|
|
|
|
substituteAllInPlace src/grand-search-daemon/data/com.deepin.dde.daemon.GrandSearch.service
|
|
'';
|
|
|
|
cmakeFlags = [ "-DVERSION=${version}" ];
|
|
|
|
meta = {
|
|
description = "System-wide desktop search for DDE";
|
|
homepage = "https://github.com/linuxdeepin/dde-grand-search";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = lib.teams.deepin.members;
|
|
};
|
|
}
|