00e30c9e9e
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
26 lines
690 B
Nix
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"
|
|
'';
|
|
}
|