mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
mpack: add version 1.6
This commit is contained in:
parent
588c8e062c
commit
d2194a294e
29
pkgs/tools/networking/mpack/build-fix.patch
Normal file
29
pkgs/tools/networking/mpack/build-fix.patch
Normal file
@ -0,0 +1,29 @@
|
||||
diff -ubr mpack-1.6-orig/unixos.c mpack-1.6/unixos.c
|
||||
--- mpack-1.6-orig/unixos.c 2013-08-17 14:32:38.102772775 +0200
|
||||
+++ mpack-1.6/unixos.c 2013-08-17 14:32:43.180792505 +0200
|
||||
@@ -38,10 +38,6 @@
|
||||
#define MAXHOSTNAMELEN 64
|
||||
#endif
|
||||
|
||||
-extern int errno;
|
||||
-extern char *malloc();
|
||||
-extern char *getenv();
|
||||
-
|
||||
int overwrite_files = 0;
|
||||
int didchat;
|
||||
|
||||
Only in mpack-1.6: unixos.o
|
||||
Only in mpack-1.6: unixunpk.o
|
||||
Only in mpack-1.6: uudecode.o
|
||||
diff -ubr mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c
|
||||
--- mpack-1.6-orig/xmalloc.c 2013-08-17 14:32:38.102772775 +0200
|
||||
+++ mpack-1.6/xmalloc.c 2013-08-17 14:33:08.900892319 +0200
|
||||
@@ -24,7 +24,6 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
-extern char *malloc(), *realloc();
|
||||
|
||||
char *xmalloc (int size)
|
||||
{
|
||||
Only in mpack-1.6: xmalloc.o
|
20
pkgs/tools/networking/mpack/default.nix
Normal file
20
pkgs/tools/networking/mpack/default.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{ stdenv, fetchurl, pkgconfig, glib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mpack-1.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.andrew.cmu.edu/pub/mpack/${name}.tar.gz";
|
||||
sha256 = "0k590z96509k96zxmhv72gkwhrlf55jkmyqlzi72m61r7axhhh97";
|
||||
};
|
||||
|
||||
patches = [ ./build-fix.patch ];
|
||||
|
||||
preConfigure = "configureFlags=--mandir=$out/share/man";
|
||||
|
||||
meta = {
|
||||
description = "utilities for encoding and decoding binary files in MIME";
|
||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
@ -833,7 +833,7 @@ let
|
||||
finger_bsd = callPackage ../tools/networking/bsd-finger { };
|
||||
|
||||
fio = callPackage ../tools/system/fio { };
|
||||
|
||||
|
||||
flpsed = callPackage ../applications/editors/flpsed { };
|
||||
|
||||
flvstreamer = callPackage ../tools/networking/flvstreamer { };
|
||||
@ -1349,6 +1349,8 @@ let
|
||||
|
||||
newsbeuter = callPackage ../applications/networking/feedreaders/newsbeuter { };
|
||||
|
||||
mpack = callPackage ../tools/networking/mpack { };
|
||||
|
||||
pa_applet = callPackage ../tools/audio/pa-applet { };
|
||||
|
||||
nilfs_utils = callPackage ../tools/filesystems/nilfs-utils {};
|
||||
|
Loading…
Reference in New Issue
Block a user