backintime-common: 1.1.24 -> 1.2.1

authored by

freezeboy and committed by
Dmitry Kalinkin
63bc9d32 610f92f2

+19 -13
+19 -13
pkgs/applications/networking/sync/backintime/common.nix
··· 1 - {stdenv, fetchFromGitHub, makeWrapper, gettext, python3Packages, rsync, cron, openssh, sshfs-fuse, encfs }: 2 3 let 4 - inherit (python3Packages) python dbus-python keyring; 5 - in stdenv.mkDerivation rec { 6 - version = "1.1.24"; 7 8 pname = "backintime-common"; 9 10 src = fetchFromGitHub { 11 owner = "bit-team"; 12 repo = "backintime"; 13 rev = "v${version}"; 14 - sha256 = "0g6gabnr60ns8854hijdddbanks7319q4n3fj5l6rc4xsq0qck18"; 15 }; 16 17 - buildInputs = [ makeWrapper gettext python dbus-python keyring openssh cron rsync sshfs-fuse encfs ]; 18 19 installFlags = [ "DEST=$(out)" ]; 20 21 - preConfigure = "cd common"; 22 23 dontAddPrefix = true; 24 25 - preFixup = 26 - '' 27 - substituteInPlace "$out/bin/backintime" \ 28 - --replace "=\"/usr/share" "=\"$prefix/share" 29 wrapProgram "$out/bin/backintime" \ 30 - --prefix PYTHONPATH : "$PYTHONPATH" \ 31 - --prefix PATH : "$prefix/bin:$PATH" 32 ''; 33 34 meta = {
··· 1 + {stdenv, lib, fetchFromGitHub, makeWrapper, gettext, 2 + python3, rsync, cron, openssh, sshfs-fuse, encfs }: 3 4 let 5 + python' = python3.withPackages (ps: with ps; [ dbus-python keyring ]); 6 7 + apps = lib.makeBinPath [ openssh python' cron rsync sshfs-fuse encfs ]; 8 + in stdenv.mkDerivation rec { 9 pname = "backintime-common"; 10 + version = "1.2.1"; 11 12 src = fetchFromGitHub { 13 owner = "bit-team"; 14 repo = "backintime"; 15 rev = "v${version}"; 16 + sha256 = "mBjheLY7DHs995heZmxVnDdvABkAROCjRJ4a/uJmJcg="; 17 }; 18 19 + nativeBuildInputs = [ makeWrapper gettext ]; 20 + buildInputs = [ python' ]; 21 22 installFlags = [ "DEST=$(out)" ]; 23 24 + preConfigure = '' 25 + cd common 26 + substituteInPlace configure \ 27 + --replace "/.." "" \ 28 + --replace "share/backintime" "${python'.sitePackages}/backintime" 29 + substituteInPlace "backintime" \ 30 + --replace "share" "${python'.sitePackages}" 31 + ''; 32 33 dontAddPrefix = true; 34 35 + preFixup = '' 36 wrapProgram "$out/bin/backintime" \ 37 + --prefix PATH : ${apps} 38 ''; 39 40 meta = {