X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=default.nix;h=beb10b88cfed8315241c61095470f8130a74a6c5;hb=42f4b42d5082b80b5b2afc55f112ae9ec3374d68;hp=40cac812f6418bab10ea09cd5794d6ed3cb9bc7c;hpb=e01535ee6ea3d756528aab1b4ca454a2002daf9c;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/default.nix b/default.nix index 40cac81..beb10b8 100644 --- a/default.nix +++ b/default.nix @@ -281,6 +281,49 @@ let buildInputs = [ ruby ]; }); + mypkgs.muttprint = stdenv.mkDerivation rec { + name = "muttprint-${version}"; + version = "0.73"; + src = fetchurl { + url = "http://downloads.sf.net/muttprint/${name}.tar.gz"; + sha256 = "1dny4niyibfgazwlzfcnb37jy6k140rs6baaj629z12rmahfdavw"; + }; + patches = [ + ./patches/muttprint_0.73-4.diff.gz + ./patches/muttprint_regex.patch + ./patches/muttprint_two_edge.patch + ]; + preConfigure = '' + aclocal + automake --add-missing --copy + autoconf + ''; + preBuild = '' + cd pics + convert -flop BabyTuX.eps BabyTuX.eps + for i in BabyTuX_color.eps BabyTuX.eps Debian_color.eps \ + Debian.eps Gentoo.eps Gentoo_color.eps ; do + convert $i $(basename $i .eps).png + done + convert penguin.eps penguin.jpg + cd .. + ''; + postInstall = '' + perlFlags= + for i in $(IFS=:; echo $PERL5LIB); do + perlFlags="$perlFlags -I$i" + done + + sed -i "$out/bin/muttprint" -e "s|^#\!\(.*[ /]perl.*\)$|#\!\1$perlFlags|" + + wrapProgram $out/bin/muttprint \ + --prefix PATH : ${lib.makeBinPath [ psutils dialog + (texlive.combine { inherit (texlive) scheme-basic utopia fancyvrb lastpage marvosym ucs cm-super; }) ]} + ''; + buildInputs = [ makeWrapper automake autoconf imagemagick ghostscript perl ] ++ + (with perlPackages; [ TimeDate FileWhich TextIconv ]); + }; + # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks in @@ -303,7 +346,7 @@ in inherit abook khard khal; inherit graphicsmagick; inherit youtube-dl; - inherit ncmpc; + inherit ncmpc ncmpcpp; inherit cadaver; inherit mairix notmuch; inherit ctags; @@ -320,6 +363,8 @@ in inherit bogofilter; inherit mtr; inherit nixops; + inherit urlview; + inherit rr; stgit = gitAndTools.stgit; # todo: lx* ?, unrar, unzip, zeromq? #inherit nextcloud-client;