Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
23
24 enableParallelBuilding = true;
25
26 doCheck = true;
27
28 passthru = {
29 updateScript = ./update.sh;
30 };
31
32 meta = with lib; {
33 homepage = "https://www.gnu.org/software/mtools/";
34 description = "Utilities to access MS-DOS disks";
35 platforms = platforms.unix;
36 license = licenses.gpl3;
37 };
38}