depot/third_party/nixpkgs/pkgs/desktops/deepin/tools/deepin-anything/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

54 lines
1 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, 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
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;
};
}