mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
27 lines
690 B
Nix
27 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"
|
||
|
'';
|
||
|
}
|