+
+ meta = with stdenv.lib; {
+ description = "Shell front end for the duplicity backup tool";
+ longDescription = ''
+ Duply is a shell front end for the duplicity backup tool
+ http://duplicity.nongnu.org/. It greatly simplifies it's usage by
+ implementing backup job profiles, batch commands and more. Who says
+ secure backups on non-trusted spaces are no child's play?
+ '';
+ homepage = http://duply.net/;
+ license = licenses.gpl2;
+ maintainers = [ maintainers.bjornfor ];
+ platforms = stdenv.lib.platforms.unix;
+ };
+ };
+
+ mypkgs.boinctui = stdenv.mkDerivation rec {
+ name = "boinctui-${version}";
+ version = "2.5.0";
+ src = fetchurl {
+ url = "http://sourceforge.net/projects/boinctui/files/boinctui_${version}.tar.gz";
+ sha256 = "16zxp8r4z6pllacdacg681y56cg2phnn3pm5gwszbsi93cix2g8p";
+ };
+
+ configureFlags = [ "--without-gnutls" ];
+ preConfigure = ''
+ autoconf
+ '';
+
+ preBuild = ''
+ sed -i -e 's/"HOME"/"XDG_CONFIG_HOME"/' src/cfg.cpp
+ sed -i -e 's@\.boinctui\.cfg@boinctui/boinctui.cfg@' src/mainprog.cpp
+ '';
+ buildInputs = [ expat openssl autoconf ncurses ];
+ };
+
+ mypkgs.sc-im = sc-im.overrideAttrs (old: {
+ buildPhase = ''
+ cd src
+ sed -i Makefile -e 's@\...name.info@.local/state/$(name)info@'
+ cd ..
+ '' + old.buildPhase;
+ });
+
+ mypkgs.notmuch-vim = stdenv.mkDerivation rec {
+ name = "notmuch-vim-${version}";
+ version = notmuch.version;
+ outputs = [ "out" ];
+ src = notmuch.src;
+ phases = [ "unpackPhase" "installPhase" ];
+ installPhase = ''
+ make -C vim DESTDIR=$out prefix="/share/vim/vimfiles" install
+ '';
+ };
+
+ mypkgs.notmuch-python2 = stdenv.mkDerivation rec {
+ name = "notmuch-python2-${version}";
+ version = notmuch.version;
+ outputs = [ "out" ];
+ buildInputs = [ python2Packages.sphinx python2Packages.python ];
+ src = notmuch.src;
+ phases = [ "unpackPhase" "buildPhase" "installPhase" "fixupPhase" ];
+ buildPhase = ''
+ cd bindings/python
+ python setup.py build
+ '';
+ installPhase = ''
+ python setup.py install --prefix=$out --optimize=1
+ '';
+ };
+
+ mypkgs.notmuch-python3 = stdenv.mkDerivation rec {
+ name = "notmuch-python3-${version}";
+ version = notmuch.version;
+ outputs = [ "out" ];
+ buildInputs = [ python3Packages.sphinx python3Packages.python ];
+ src = notmuch.src;
+ phases = [ "unpackPhase" "buildPhase" "installPhase" "fixupPhase" ];
+ buildPhase = ''
+ cd bindings/python
+ python setup.py build
+ '';
+ installPhase = ''
+ python setup.py install --prefix=$out --optimize=1
+ '';
+ };
+
+ mypkgs.telegramircd = with python3Packages; let
+ telethon = buildPythonPackage rec {
+ pname = "Telethon-sync";
+ version = "1.1.1";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 =
+ "01z8fzqn0qs5pxhvzq891r3mwffq1ga3f8xvm7qdn6kvmxjni9fy";
+ };
+
+ propagatedBuildInputs = with self; [
+ rsa pyaes async_generator
+ ];
+ doCheck = false;
+
+ meta = with lib; {
+ homepage = https://github.com/LonamiWebs/Telethon;
+ description = "Full-featured Telegram client library for Python 3";
+ license = licenses.mit;
+ };
+ };
+ in
+ buildPythonApplication rec {
+ format = "other";
+ pname = "telegramircd";
+ version = "master";
+ propagatedBuildInputs = [ telethon aiohttp ConfigArgParse openssl ];
+ src = (fetchedGithub ./fetched/telegramircd.json).src;
+ LD_LIBRARY_PATH = "${openssl.out}/lib";
+ installPhase = ''
+ install -D $src/telegramircd.py $out/bin/telegramircd
+ wrapProgram "$out/bin/telegramircd" \
+ --prefix LD_LIBRARY_PATH : "${openssl.out}/lib"
+ install -Dm644 "$src/config" -t "$out/etc/telegramircd/"
+ '';
+ };
+
+ mypkgs.lesspipe = lesspipe.overrideAttrs(old: {
+ configureFlags = (old.configureFlags or []) ++ [ "--yes" ];
+ });
+
+ mypkgs.genius = stdenv.mkDerivation rec {
+ name = "genius-${version}";
+ version = "1.0.24";
+ src = fetchurl {
+ url = "https://download.gnome.org/sources/genius/1.0/${name}.tar.xz";
+ sha256 = "772f95f6ae4716d39bb180cd50e8b6b9b074107bee0cd083b825e1e6e55916b6";
+ };
+ buildInputs = [
+ mpfr glib hicolor-icon-theme gtk2 intltool gnome-doc-utils python3 gnome2.gtksourceview
+ autoconf automake libtool ncurses readline pkg-config