From 16686f2b3f11bb6a93310aeea723f167dc05f736 Mon Sep 17 00:00:00 2001 From: Enric Morales Date: Thu, 12 Sep 2024 00:58:04 -0400 Subject: [PATCH] gnucobol: nixfmt --- pkgs/by-name/gn/gnucobol/package.nix | 81 +++++++++++++++++----------- 1 file changed, 50 insertions(+), 31 deletions(-) diff --git a/pkgs/by-name/gn/gnucobol/package.nix b/pkgs/by-name/gn/gnucobol/package.nix index e42840bcb163..f68390c2879a 100644 --- a/pkgs/by-name/gn/gnucobol/package.nix +++ b/pkgs/by-name/gn/gnucobol/package.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, fetchurl -, autoconf269 -, automake -, libtool -, pkg-config -# libs -, cjson -, db -, gmp -, libxml2 -, ncurses -# docs -, help2man -, texinfo -, texliveBasic +{ + lib, + stdenv, + fetchurl, + autoconf269, + automake, + libtool, + pkg-config, + # libs + cjson, + db, + gmp, + libxml2, + ncurses, + # docs + help2man, + texinfo, + texliveBasic, # test }: @@ -45,9 +46,14 @@ stdenv.mkDerivation rec { ncurses ]; - outputs = [ "bin" "dev" "lib" "out" ]; + outputs = [ + "bin" + "dev" + "lib" + "out" + ]; # XXX: Without this, we get a cycle between bin and dev - propagatedBuildOutputs = []; + propagatedBuildOutputs = [ ]; # Skips a broken test postPatch = '' @@ -59,15 +65,17 @@ stdenv.mkDerivation rec { 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' - ''; + 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] @@ -75,7 +83,11 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - installFlags = [ "install-pdf" "install-html" "localedir=$out/share/locale" ]; + installFlags = [ + "install-pdf" + "install-html" + "localedir=$out/share/locale" + ]; # Tests must run after install. doCheck = false; @@ -109,8 +121,15 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Free/libre COBOL compiler"; homepage = "https://gnu.org/software/gnucobol/"; - license = with licenses; [ gpl3Only lgpl3Only ]; - maintainers = with maintainers; [ ericsagnes lovesegfault techknowlogick ]; + license = with licenses; [ + gpl3Only + lgpl3Only + ]; + maintainers = with maintainers; [ + ericsagnes + lovesegfault + techknowlogick + ]; platforms = platforms.all; }; }