2022-04-15 15:23:25 +00:00
|
|
|
{ lib, stdenv, fetchurl, libiconv }:
|
2010-08-06 21:36:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-03 07:52:48 +00:00
|
|
|
pname = "mtools";
|
2022-03-06 10:33:51 +00:00
|
|
|
version = "4.0.38";
|
2010-08-06 21:36:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-03 07:52:48 +00:00
|
|
|
url = "mirror://gnu/mtools/${pname}-${version}.tar.bz2";
|
2022-03-06 10:33:51 +00:00
|
|
|
sha256 = "sha256-e5RIX0huffCMymiwChZKE8049MY8uGhNGIdZ7nvF5yk=";
|
2010-08-06 21:36:54 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
patches = lib.optional stdenv.isDarwin ./UNUSED-darwin.patch;
|
2017-04-01 21:11:11 +00:00
|
|
|
|
|
|
|
# fails to find X on darwin
|
2021-01-15 09:19:50 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--without-x";
|
2017-04-01 21:11:11 +00:00
|
|
|
|
2022-04-15 15:23:25 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2010-10-19 08:09:10 +00:00
|
|
|
doCheck = true;
|
2010-08-06 21:36:54 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-22 17:45:44 +00:00
|
|
|
homepage = "https://www.gnu.org/software/mtools/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Utilities to access MS-DOS disks";
|
2018-09-07 20:23:41 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
2010-08-06 21:36:54 +00:00
|
|
|
};
|
|
|
|
}
|