X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=default.nix;h=d003e908fe21301c13a13c674bee07909e1ab4dc;hb=19be5cd24d3e17b3c1fe341ea9e09a67d1d422d1;hp=40cac812f6418bab10ea09cd5794d6ed3cb9bc7c;hpb=e01535ee6ea3d756528aab1b4ca454a2002daf9c;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/default.nix b/default.nix index 40cac81..d003e90 100644 --- a/default.nix +++ b/default.nix @@ -2,20 +2,6 @@ with import ./libs.nix; with import {}; let mypkgs = {}; - postHook = '' - header() { - echo -ne "\033[1;36m" - echo -n "$1" - echo -e "\033[0m" - } - - echoCmd() { - printf "\033[1;34m%s:\033[0m" "$1" - shift - printf ' %q' "$@" - echo - } - ''; mypkgs.ledger = (ledger.override { boost = boost166; }).overrideAttrs (_old: fetchedGithub ./fetched/ledger.json // { @@ -281,6 +267,50 @@ 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 ]); + }; + + mypkgs.yarn2nix = yarn2nixPackage.yarn2nix; # 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 +333,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 +350,9 @@ in inherit bogofilter; inherit mtr; inherit nixops; + inherit urlview; + inherit rr; + inherit nix-zsh-completions; stgit = gitAndTools.stgit; # todo: lx* ?, unrar, unzip, zeromq? #inherit nextcloud-client; @@ -340,6 +373,5 @@ in inherit notmuch; stgit = gitAndTools.stgit; inherit bundix; - inherit yarn2nix; bower2nix = nodePackages.bower2nix; })