17 python' = python3.withPackages (
26 inherit (backintime-common)
34 pname = "backintime-qt";
43 nativeBuildInputs = backintime-common.nativeBuildInputs or [ ] ++ [
47 configureFlags = [ "--python=${lib.getExe python'}" ];
50 patchShebangs --build updateversion.sh
52 substituteInPlace qttools_path.py \
53 --replace "__file__, os.pardir, os.pardir" '"${backintime-common}/${python'.sitePackages}/backintime"'
57 wrapQtApp "$out/bin/backintime-qt" \
58 --prefix PATH : "${lib.getBin backintime-common}/bin:$PATH"
60 substituteInPlace "$out/share/polkit-1/actions/net.launchpad.backintime.policy" \
61 --replace-fail "/usr/bin/backintime-qt" "$out/bin/backintime-qt"
63 substituteInPlace "$out/share/applications/backintime-qt-root.desktop" \
64 --replace-fail "/usr/bin/backintime-qt" "backintime-qt"
66 substituteInPlace "$out/share/backintime/qt/serviceHelper.py" \
67 --replace-fail "'which'" "'${lib.getExe which}'" \
68 --replace-fail "/bin/su" "${lib.getBin su}/bin/su" \
69 --replace-fail "/usr/bin/backintime" "${lib.getExe backintime-common}" \
70 --replace-fail "/usr/bin/nice" "${lib.getBin coreutils}/bin/nice" \
71 --replace-fail "/usr/bin/ionice" "${lib.getBin util-linux}/bin/ionice"
73 substituteInPlace "$out/share/dbus-1/system-services/net.launchpad.backintime.serviceHelper.service" \
74 --replace-fail "/usr/share/backintime" "$out/share/backintime"
76 substituteInPlace "$out/bin/backintime-qt_polkit" \
77 --replace-fail "/usr/bin/backintime-qt" "$out/bin/backintime-qt"
79 wrapProgram "$out/bin/backintime-qt_polkit" \
80 --prefix PATH : "${lib.getBin polkit}/bin:$PATH"