Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
31 lines
783 B
Nix
31 lines
783 B
Nix
{ lib, stdenv, fetchurl, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mtools";
|
|
version = "4.0.45";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/mtools/${pname}-${version}.tar.bz2";
|
|
hash = "sha256-CwCKlr0O/g5UL6Q4PUaa9mvEqTOUmQsQNzCoFgpn1hg=";
|
|
};
|
|
|
|
patches = lib.optional stdenv.hostPlatform.isDarwin ./UNUSED-darwin.patch;
|
|
|
|
# fails to find X on darwin
|
|
configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--without-x";
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = ./update.sh;
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.gnu.org/software/mtools/";
|
|
description = "Utilities to access MS-DOS disks";
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|