nixpkgs-suyu/pkgs/applications/networking/sync/backintime/qt.nix
freezeboy 00e30c9e9e backintime-qt: 1.1.24 -> 1.2.1
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
2020-11-03 10:32:05 -05:00

26 lines
690 B
Nix

{ mkDerivation, backintime-common, python3 }:
let
python' = python3.withPackages (ps: with ps; [ pyqt5 backintime-common ]);
in
mkDerivation {
inherit (backintime-common)
version src installFlags meta dontAddPrefix nativeBuildInputs;
pname = "backintime-qt";
buildInputs = [ python' backintime-common ];
preConfigure = ''
cd qt
substituteInPlace configure \
--replace '"/../etc' '"/etc'
substituteInPlace qttools.py \
--replace "__file__, os.pardir, os.pardir" '"${backintime-common}/${python'.sitePackages}/backintime"'
'';
preFixup = ''
wrapQtApp "$out/bin/backintime-qt" \
--prefix PATH : "${backintime-common}/bin:$PATH"
'';
}