1 { lib, stdenv, fetchurl, makeWrapper, perlPackages }:
4 perlDeps = with perlPackages; [ TimeDate ];
6 stdenv.mkDerivation rec {
11 url = "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-${version}.pl.gz";
12 sha256 = "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg";
15 nativeBuildInputs = [ makeWrapper ];
16 buildInputs = [ perlPackages.perl ];
20 gzip -d < $src > mb2md.pl
24 install -D $sourceRoot/mb2md.pl $out/bin/mb2md
28 wrapProgram $out/bin/mb2md \
29 --set PERL5LIB "${perlPackages.makePerlPath perlDeps}"
33 description = "mbox to maildir tool";
34 mainProgram = "mb2md";
35 license = licenses.publicDomain;
36 platforms = platforms.all;
37 maintainers = [ maintainers.jb55 ];