2010-10-19 10:09:10 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2010-08-06 23:36:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-19 08:18:55 +01:00
|
|
|
name = "mtools-4.0.20";
|
2010-08-06 23:36:54 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/mtools/${name}.tar.bz2";
|
2018-11-19 08:18:55 +01:00
|
|
|
sha256 = "1vcahr9s6zv1hnrx2bgjnzcas2y951q90r1jvvv4q9v5kwfd6qb0";
|
2010-08-06 23:36:54 +02:00
|
|
|
};
|
|
|
|
|
2017-04-01 23:11:11 +02:00
|
|
|
# Prevents errors such as "mainloop.c:89:15: error: expected ')'"
|
|
|
|
# Upstream issue https://lists.gnu.org/archive/html/info-mtools/2014-02/msg00000.html
|
2018-11-19 11:19:19 +01:00
|
|
|
patches = [ ./fix-dos_to_wchar-declaration.patch ] ++
|
|
|
|
stdenv.lib.optional stdenv.isDarwin ./UNUSED-darwin.patch;
|
2017-04-01 23:11:11 +02:00
|
|
|
|
|
|
|
# fails to find X on darwin
|
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--without-x";
|
|
|
|
|
2010-10-19 10:09:10 +02:00
|
|
|
doCheck = true;
|
2010-08-06 23:36:54 +02:00
|
|
|
|
2018-09-07 22:23:41 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-08-06 23:36:54 +02:00
|
|
|
homepage = http://www.gnu.org/software/mtools/;
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Utilities to access MS-DOS disks";
|
2018-09-07 22:23:41 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
2010-08-06 23:36:54 +02:00
|
|
|
};
|
|
|
|
}
|