diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/filesystems/mtools/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/filesystems/mtools/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/filesystems/mtools/default.nix b/nixpkgs/pkgs/tools/filesystems/mtools/default.nix new file mode 100644 index 000000000000..b477ad8deace --- /dev/null +++ b/nixpkgs/pkgs/tools/filesystems/mtools/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "mtools-4.0.23"; + + src = fetchurl { + url = "mirror://gnu/mtools/${name}.tar.bz2"; + sha256 = "1qwfxzr964fasxlzhllahk8mzh7c82s808wvly95dsqsflkdp27i"; + }; + + patches = stdenv.lib.optional stdenv.isDarwin ./UNUSED-darwin.patch; + + # fails to find X on darwin + configureFlags = stdenv.lib.optional stdenv.isDarwin "--without-x"; + + doCheck = true; + + meta = with stdenv.lib; { + homepage = https://www.gnu.org/software/mtools/; + description = "Utilities to access MS-DOS disks"; + platforms = platforms.unix; + license = licenses.gpl3; + }; +} |