nixpkgs/pkgs/tools/filesystems/mtools/default.nix

28 lines
817 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "mtools-4.0.20";
src = fetchurl {
url = "mirror://gnu/mtools/${name}.tar.bz2";
sha256 = "1vcahr9s6zv1hnrx2bgjnzcas2y951q90r1jvvv4q9v5kwfd6qb0";
};
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";
doCheck = true;
2018-09-07 22:23:41 +02:00
meta = with stdenv.lib; {
homepage = http://www.gnu.org/software/mtools/;
description = "Utilities to access MS-DOS disks";
2018-09-07 22:23:41 +02:00
platforms = platforms.unix;
license = licenses.gpl3;
};
}