Loading pkgs/development/compilers/gnu-cobol/default.nix +18 −3 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ , autoconf269 , automake , libtool , pkg-config # libs , cjson , db Loading @@ -20,14 +21,15 @@ stdenv.mkDerivation rec { pname = "gnu-cobol"; version = "3.1.2"; version = "3.2"; src = fetchurl { url = "mirror://sourceforge/gnucobol/${lib.versions.majorMinor version}/gnucobol-${version}.tar.xz"; sha256 = "0x15ybfm63g7c9340fc6712h9v59spnbyaz4rf85pmnp3zbhaw2r"; hash = "sha256-O7SK9GztR3n6z0H9wu5g5My4bqqZ0BCzZoUxXfOcLuI="; }; nativeBuildInputs = [ pkg-config autoconf269 automake libtool Loading @@ -51,14 +53,27 @@ stdenv.mkDerivation rec { # Skips a broken test postPatch = '' sed -i '/^AT_CHECK.*crud\.cob/i AT_SKIP_IF([true])' tests/testsuite.src/listings.at # upstream reports the following tests as known failures # test 843: sed -i '14180i\AT_SKIP_IF([true])' tests/testsuite.src/run_misc.at # test 875: sed -i '2894s/^/AT_SKIP_IF([true])/' tests/testsuite.src/run_file.at ''; preConfigure = '' autoconf aclocal automake '' + lib.optionalString stdenv.isDarwin '' # when building with nix on darwin, configure will use GNU strip, # which fails due to using --strip-unneeded, which is not supported substituteInPlace configure --replace-fail '"GNU strip"' 'FAKE GNU strip' ''; # error: call to undeclared function 'xmlCleanupParser' # ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] env.CFLAGS = lib.optionalString stdenv.isDarwin "-Wno-error=implicit-function-declaration"; enableParallelBuilding = true; installFlags = [ "install-pdf" "install-html" "localedir=$out/share/locale" ]; Loading @@ -71,7 +86,7 @@ stdenv.mkDerivation rec { runHook preInstallCheck # Run tests make -j$NIX_BUILD_CORES check TESTSUITEFLAGS="--jobs=$NIX_BUILD_CORES" make check # Sanity check message="Hello, COBOL!" Loading Loading
pkgs/development/compilers/gnu-cobol/default.nix +18 −3 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ , autoconf269 , automake , libtool , pkg-config # libs , cjson , db Loading @@ -20,14 +21,15 @@ stdenv.mkDerivation rec { pname = "gnu-cobol"; version = "3.1.2"; version = "3.2"; src = fetchurl { url = "mirror://sourceforge/gnucobol/${lib.versions.majorMinor version}/gnucobol-${version}.tar.xz"; sha256 = "0x15ybfm63g7c9340fc6712h9v59spnbyaz4rf85pmnp3zbhaw2r"; hash = "sha256-O7SK9GztR3n6z0H9wu5g5My4bqqZ0BCzZoUxXfOcLuI="; }; nativeBuildInputs = [ pkg-config autoconf269 automake libtool Loading @@ -51,14 +53,27 @@ stdenv.mkDerivation rec { # Skips a broken test postPatch = '' sed -i '/^AT_CHECK.*crud\.cob/i AT_SKIP_IF([true])' tests/testsuite.src/listings.at # upstream reports the following tests as known failures # test 843: sed -i '14180i\AT_SKIP_IF([true])' tests/testsuite.src/run_misc.at # test 875: sed -i '2894s/^/AT_SKIP_IF([true])/' tests/testsuite.src/run_file.at ''; preConfigure = '' autoconf aclocal automake '' + lib.optionalString stdenv.isDarwin '' # when building with nix on darwin, configure will use GNU strip, # which fails due to using --strip-unneeded, which is not supported substituteInPlace configure --replace-fail '"GNU strip"' 'FAKE GNU strip' ''; # error: call to undeclared function 'xmlCleanupParser' # ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] env.CFLAGS = lib.optionalString stdenv.isDarwin "-Wno-error=implicit-function-declaration"; enableParallelBuilding = true; installFlags = [ "install-pdf" "install-html" "localedir=$out/share/locale" ]; Loading @@ -71,7 +86,7 @@ stdenv.mkDerivation rec { runHook preInstallCheck # Run tests make -j$NIX_BUILD_CORES check TESTSUITEFLAGS="--jobs=$NIX_BUILD_CORES" make check # Sanity check message="Hello, COBOL!" Loading