2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
pname = "mtools";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "4.0.37";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-07 07:45:13 +00:00
|
|
|
url = "mirror://gnu/mtools/${pname}-${version}.tar.bz2";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-eZsZfiPke2ElliiBCyd5Dvt6H+NgN+8dqKJ7CuT6g0I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
patches = lib.optional stdenv.isDarwin ./UNUSED-darwin.patch;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# fails to find X on darwin
|
2021-01-15 22:18:51 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--without-x";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/mtools/";
|
|
|
|
description = "Utilities to access MS-DOS disks";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|