nixpkgs/pkgs/applications/networking/sync/backintime/qt4.nix
Damien Cassou 2bdfa515c9 Update backintime to 1.1.0
This release removed the Gnome UI to only keep the Qt4 one.
2015-01-16 10:31:16 +01:00

25 lines
749 B
Nix

{stdenv, fetchurl, makeWrapper, gettext, pkgconfig, libtool, backintime-common, python3, python3Packages }:
stdenv.mkDerivation rec {
inherit (backintime-common) version src installFlags meta;
name = "backintime-gnome-${version}";
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"
'';
}