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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
746 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libiconv }:
stdenv.mkDerivation rec {
2020-12-03 07:52:48 +00:00
pname = "mtools";
2023-03-22 13:21:00 +00:00
version = "4.0.43";
src = fetchurl {
2020-12-03 07:52:48 +00:00
url = "mirror://gnu/mtools/${pname}-${version}.tar.bz2";
2023-03-22 13:21:00 +00:00
sha256 = "sha256-VB4XlmXcTicrlgLyB0JDWRoVfaicxHBk2oxYKdvSszk=";
};
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
buildInputs = lib.optional stdenv.isDarwin libiconv;
doCheck = true;
2023-03-22 13:19:29 +00:00
passthru = {
updateScript = ./update.sh;
};
meta = with lib; {
homepage = "https://www.gnu.org/software/mtools/";
description = "Utilities to access MS-DOS disks";
2018-09-07 20:23:41 +00:00
platforms = platforms.unix;
license = licenses.gpl3;
};
}