diff options
author | William Casarin <jb55@jb55.com> | 2017-05-02 12:37:10 -0700 |
---|---|---|
committer | William Casarin <jb55@jb55.com> | 2017-05-05 08:52:06 -0700 |
commit | 8d03054f77a3fdee0803041df550e3bd3cdc0789 (patch) | |
tree | 9b4d01edb497816d0870802b54782d637556fcd2 /pkgs/tools | |
parent | 4ff4f6e0384be49bbd429c56c102c6af69edb78d (diff) | |
download | nixlib-8d03054f77a3fdee0803041df550e3bd3cdc0789.tar nixlib-8d03054f77a3fdee0803041df550e3bd3cdc0789.tar.gz nixlib-8d03054f77a3fdee0803041df550e3bd3cdc0789.tar.bz2 nixlib-8d03054f77a3fdee0803041df550e3bd3cdc0789.tar.lz nixlib-8d03054f77a3fdee0803041df550e3bd3cdc0789.tar.xz nixlib-8d03054f77a3fdee0803041df550e3bd3cdc0789.tar.zst nixlib-8d03054f77a3fdee0803041df550e3bd3cdc0789.zip |
mb2md: init at 3.20
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/text/mb2md/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/text/mb2md/default.nix b/pkgs/tools/text/mb2md/default.nix new file mode 100644 index 000000000000..a920cbf39482 --- /dev/null +++ b/pkgs/tools/text/mb2md/default.nix @@ -0,0 +1,38 @@ +{ stdenv, lib, fetchurl, perl, makeWrapper, perlPackages }: + +let + perlDeps = with perlPackages; [ TimeDate ]; +in +stdenv.mkDerivation rec { + version = "3.20"; + name = "mb2md-${version}"; + + src = fetchurl { + url = "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-${version}.pl.gz"; + sha256 = "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg"; + }; + + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ perl ]; + + unpackPhase = '' + sourceRoot=. + gzip -d < $src > mb2md.pl + ''; + + installPhase = '' + install -D $sourceRoot/mb2md.pl $out/bin/mb2md + ''; + + postFixup = '' + wrapProgram $out/bin/mb2md \ + --set PERL5LIB "${lib.makePerlPath perlDeps}" + ''; + + meta = with stdenv.lib; { + description = "mbox to maildir tool"; + license = licenses.publicDomain; + platforms = platforms.all; + maintainers = [ maintainers.jb55 ]; + }; +} |