diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-01 16:44:37 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-01 16:44:37 +0100 |
commit | 0e2c16b8b8ac8987fe9cbf86195796ce688e628b (patch) | |
tree | 162e76d78551929d7c8929fc45f09d9be337776f | |
parent | 5cae8acfbc7bb6dabac2eed9e26704f3b4648c9a (diff) | |
download | Nix-0e2c16b8b8ac8987fe9cbf86195796ce688e628b.tar.gz Nix-0e2c16b8b8ac8987fe9cbf86195796ce688e628b.tar.zst Nix-0e2c16b8b8ac8987fe9cbf86195796ce688e628b.zip |
Add duply and boinctui
-rw-r--r-- | default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 6072d60..674a72f 100644 --- a/default.nix +++ b/default.nix | |||
@@ -385,6 +385,66 @@ let | |||
385 | in | 385 | in |
386 | packageEnv.package; | 386 | packageEnv.package; |
387 | 387 | ||
388 | mypkgs.duply = stdenv.mkDerivation rec { | ||
389 | name = "duply-${version}"; | ||
390 | version = "2.1"; | ||
391 | |||
392 | src = fetchurl { | ||
393 | url = "mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/2.1.x/duply_${version}.tgz"; | ||
394 | sha256 = "0i5j7h7h6ssrwhll0sfhymisshg54kx7j45zcqffzjxa0ylvzlm8"; | ||
395 | }; | ||
396 | |||
397 | buildInputs = [ txt2man makeWrapper ]; | ||
398 | |||
399 | postPatch = "patchShebangs ."; | ||
400 | |||
401 | installPhase = '' | ||
402 | mkdir -p "$out/bin" | ||
403 | mkdir -p "$out/share/man/man1" | ||
404 | install -vD duply "$out/bin" | ||
405 | sed -i $out/bin/duply -e "1a \ | ||
406 | export PATH='${stdenv.lib.makeBinPath [ coreutils python2 duplicity gawk gnupg1 bash gnugrep txt2man which ]}' | ||
407 | " -e "1a \ | ||
408 | export DUPL_PYTHON_BIN=$(basename ${duplicity}/lib/python*) | ||
409 | " | ||
410 | "$out/bin/duply" txt2man > "$out/share/man/man1/duply.1" | ||
411 | ''; | ||
412 | |||
413 | meta = with stdenv.lib; { | ||
414 | description = "Shell front end for the duplicity backup tool"; | ||
415 | longDescription = '' | ||
416 | Duply is a shell front end for the duplicity backup tool | ||
417 | http://duplicity.nongnu.org/. It greatly simplifies it's usage by | ||
418 | implementing backup job profiles, batch commands and more. Who says | ||
419 | secure backups on non-trusted spaces are no child's play? | ||
420 | ''; | ||
421 | homepage = http://duply.net/; | ||
422 | license = licenses.gpl2; | ||
423 | maintainers = [ maintainers.bjornfor ]; | ||
424 | platforms = stdenv.lib.platforms.unix; | ||
425 | }; | ||
426 | }; | ||
427 | |||
428 | mypkgs.boinctui = stdenv.mkDerivation rec { | ||
429 | name = "boinctui-${version}"; | ||
430 | version = "2.5.0"; | ||
431 | src = fetchurl { | ||
432 | url = "http://sourceforge.net/projects/boinctui/files/boinctui_${version}.tar.gz"; | ||
433 | sha256 = "16zxp8r4z6pllacdacg681y56cg2phnn3pm5gwszbsi93cix2g8p"; | ||
434 | }; | ||
435 | |||
436 | configureFlags = [ "--without-gnutls" ]; | ||
437 | preConfigure = '' | ||
438 | autoconf | ||
439 | ''; | ||
440 | |||
441 | preBuild = '' | ||
442 | sed -i -e 's/"HOME"/"XDG_CONFIG_HOME"/' src/cfg.cpp | ||
443 | sed -i -e 's@\.boinctui\.cfg@boinctui/boinctui.cfg@' src/mainprog.cpp | ||
444 | ''; | ||
445 | buildInputs = [ expat openssl autoconf ncurses ]; | ||
446 | }; | ||
447 | |||
388 | mypkgs.sc-im = sc-im.overrideAttrs (old: { | 448 | mypkgs.sc-im = sc-im.overrideAttrs (old: { |
389 | buildPhase = '' | 449 | buildPhase = '' |
390 | cd src | 450 | cd src |