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:
parent
63bc9d32fe
commit
00e30c9e9e
26
pkgs/applications/networking/sync/backintime/qt.nix
Normal file
26
pkgs/applications/networking/sync/backintime/qt.nix
Normal 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"
|
||||
'';
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue