mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
commit
c15a17eb84
38
pkgs/tools/text/mb2md/default.nix
Normal file
38
pkgs/tools/text/mb2md/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -2919,6 +2919,8 @@ with pkgs;
|
||||
|
||||
mawk = callPackage ../tools/text/mawk { };
|
||||
|
||||
mb2md = callPackage ../tools/text/mb2md { };
|
||||
|
||||
mbox = callPackage ../tools/security/mbox { };
|
||||
|
||||
mbuffer = callPackage ../tools/misc/mbuffer { };
|
||||
|
Loading…
Reference in New Issue
Block a user