1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "http://ftp.andrew.cmu.edu/pub/mpack/mpack-${version}.tar.gz";
9 sha256 = "0k590z96509k96zxmhv72gkwhrlf55jkmyqlzi72m61r7axhhh97";
12 patches = [ ./build-fix.patch ./sendmail-via-execvp.diff ];
15 for f in *.{c,man,pl,unix} ; do
16 substituteInPlace $f --replace /usr/tmp /tmp
19 # this just shuts up some warnings
20 for f in {decode,encode,part,unixos,unixpk,unixunpk,xmalloc}.c ; do
21 sed -i 'i#include <stdlib.h>' $f
26 install -Dm644 -t $out/share/doc/mpack INSTALL README.*
29 enableParallelBuilding = true;
32 description = "Utilities for encoding and decoding binary files in MIME";
33 license = licenses.free;
34 platforms = platforms.linux;