mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
00e30c9e9e
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
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"
|
|
'';
|
|
}
|