nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 875 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libiconv, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "mtools"; 10 version = "4.0.49"; 11 12 src = fetchurl { 13 url = "mirror://gnu/mtools/${pname}-${version}.tar.bz2"; 14 hash = "sha256-b+UZNYPW58Wdp15j1yNPdsCwfK8zsQOJT0b2aocf/J8="; 15 }; 16 17 patches = lib.optional stdenv.hostPlatform.isDarwin ./UNUSED-darwin.patch; 18 19 # fails to find X on darwin 20 configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--without-x"; 21 22 outputs = [ 23 "out" 24 "info" 25 "man" 26 ]; 27 28 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv; 29 30 enableParallelBuilding = true; 31 32 doCheck = true; 33 34 passthru = { 35 updateScript = ./update.sh; 36 }; 37 38 meta = { 39 homepage = "https://www.gnu.org/software/mtools/"; 40 description = "Utilities to access MS-DOS disks"; 41 platforms = lib.platforms.unix; 42 license = lib.licenses.gpl3; 43 }; 44}