3
0
Fork 0
forked from mirrors/nixpkgs

backintime-qt: 1.1.24 -> 1.2.1

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
This commit is contained in:
freezeboy 2020-11-02 03:04:29 +01:00 committed by Dmitry Kalinkin
parent 63bc9d32fe
commit 00e30c9e9e
3 changed files with 28 additions and 30 deletions

View file

@ -0,0 +1,26 @@
{ 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"
'';
}

View file

@ -1,28 +0,0 @@
{stdenv, makeWrapper, gettext, backintime-common, python3, python3Packages }:
stdenv.mkDerivation {
inherit (backintime-common) version src installFlags;
pname = "backintime-qt4";
buildInputs = [ makeWrapper gettext python3 python3Packages.pyqt4 backintime-common python3 ];
preConfigure = "cd qt4";
configureFlags = [ ];
dontAddPrefix = true;
preFixup =
''
substituteInPlace "$out/bin/backintime-qt4" \
--replace "=\"/usr/share" "=\"$prefix/share"
wrapProgram "$out/bin/backintime-qt4" \
--prefix PYTHONPATH : "${backintime-common}/share/backintime/common:$PYTHONPATH" \
--prefix PATH : "${backintime-common}/bin:$PATH"
'';
meta = with stdenv.lib; {
broken = true;
};
}

View file

@ -20007,9 +20007,9 @@ in
backintime-common = callPackage ../applications/networking/sync/backintime/common.nix { };
backintime-qt4 = callPackage ../applications/networking/sync/backintime/qt4.nix { };
backintime-qt = libsForQt5.callPackage ../applications/networking/sync/backintime/qt.nix { };
backintime = backintime-qt4;
backintime = backintime-qt;
balsa = callPackage ../applications/networking/mailreaders/balsa { };