2022-04-27 09:35:20 +00:00
|
|
|
{ lib, stdenv, fetchurl, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
pname = "mtools";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "4.0.45";
|
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";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-CwCKlr0O/g5UL6Q4PUaa9mvEqTOUmQsQNzCoFgpn1hg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
patches = lib.optional stdenv.hostPlatform.isDarwin ./UNUSED-darwin.patch;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# fails to find X on darwin
|
2024-09-26 11:04:55 +00:00
|
|
|
configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--without-x";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = ./update.sh;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|