nixpkgs/pkgs/desktops/deepin/tools/deepin-anything/default.nix
rewine d93fee8b20 deepin: don't inherit libsForQt5 scope
The deepin desktop environment requires both qt5 and qt6, deepin scope should not inherit from qt5
2024-11-08 21:34:44 +08:00

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;
};
}