2018-07-21 01:44:44 +01:00
|
|
|
{stdenv, makeWrapper, gettext, backintime-common, python3, python3Packages }:
|
2015-01-16 09:30:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-04-13 13:12:11 +01:00
|
|
|
inherit (backintime-common) version src installFlags;
|
2015-01-16 09:30:08 +00:00
|
|
|
|
2015-04-08 10:47:46 +01:00
|
|
|
name = "backintime-qt4-${version}";
|
2015-01-16 09:30:08 +00:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper gettext python3 python3Packages.pyqt4 backintime-common python3 ];
|
|
|
|
|
|
|
|
preConfigure = "cd qt4";
|
|
|
|
configureFlags = [ ];
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
2015-04-08 10:47:46 +01:00
|
|
|
|
2015-01-16 09:30:08 +00:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2018-04-13 13:12:11 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
broken = true;
|
|
|
|
};
|
2015-01-16 09:30:08 +00:00
|
|
|
}
|