nixpkgs-suyu/pkgs/desktops/deepin/deepin-anything/default.nix

64 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qtbase, udisks2-qt5, utillinux,
2018-10-20 16:02:53 +02:00
dtkcore, deepin }:
mkDerivation rec {
2018-10-20 16:02:53 +02:00
pname = "deepin-anything";
2019-11-12 03:21:10 +01:00
version = "5.0.1";
2018-10-20 16:02:53 +02:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2019-06-22 14:26:32 +02:00
sha256 = "1kvyffrii4b012f6ld1ih14qrn7gg5cxbdpbkac0wxb22hnz0azm";
2018-10-20 16:02:53 +02:00
};
outputs = [ "out" "modsrc" ];
nativeBuildInputs = [
pkgconfig
deepin.setupHook
];
buildInputs = [
dtkcore
qtbase
udisks2-qt5
utillinux
];
enableParallelBuilding = true;
makeFlags = [
"DEB_HOST_MULTIARCH="
"PREFIX=${placeholder "out"}"
2018-10-20 16:02:53 +02:00
];
postPatch = ''
searchHardCodedPaths # for debugging
fixPath $modsrc /usr/src Makefile
fixPath $out /usr Makefile
fixPath $out /usr server/tool/tool.pro
fixPath $out /etc server/tool/tool.pro
fixPath $out /usr/bin \
server/tool/deepin-anything-tool.service \
server/tool/com.deepin.anything.service \
server/monitor/deepin-anything-monitor.service
sed -e 's,/lib/systemd,$$PREFIX/lib/systemd,' -i server/monitor/src/src.pro server/tool/tool.pro
'';
postFixup = ''
searchHardCodedPaths $out # for debugging
searchHardCodedPaths $modsrc # for debugging
'';
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
2018-10-20 16:02:53 +02:00
meta = with stdenv.lib; {
description = "Deepin file search tool";
homepage = https://github.com/linuxdeepin/deepin-anything;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}