nixpkgs/pkgs/applications/networking/sync/backintime/qt4.nix

26 lines
745 B
Nix
Raw Normal View History

{stdenv, fetchurl, makeWrapper, gettext, pkgconfig, libtool, backintime-common, python3, python3Packages }:
stdenv.mkDerivation rec {
inherit (backintime-common) version src installFlags meta;
2015-04-08 11:47:46 +02:00
name = "backintime-qt4-${version}";
buildInputs = [ makeWrapper gettext python3 python3Packages.pyqt4 backintime-common python3 ];
preConfigure = "cd qt4";
configureFlags = [ ];
dontAddPrefix = true;
2015-04-08 11:47:46 +02: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"
'';
}