{"id":20708291,"url":"https://github.com/rupurt/gnucobol-nix","last_synced_at":"2026-04-19T08:31:54.401Z","repository":{"id":220586024,"uuid":"751961805","full_name":"rupurt/gnucobol-nix","owner":"rupurt","description":"Nix flake to build GnuCOBOL and GnuCOBOL Contrib","archived":false,"fork":false,"pushed_at":"2025-05-21T21:55:13.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-21T22:39:00.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rupurt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-02T17:54:31.000Z","updated_at":"2025-05-21T21:55:16.000Z","dependencies_parsed_at":"2024-02-14T09:30:58.544Z","dependency_job_id":"bd05c3ee-3bc5-4f31-a130-b867ec95c0f4","html_url":"https://github.com/rupurt/gnucobol-nix","commit_stats":null,"previous_names":["rupurt/gnucobol-nix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rupurt/gnucobol-nix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fgnucobol-nix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fgnucobol-nix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fgnucobol-nix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fgnucobol-nix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rupurt","download_url":"https://codeload.github.com/rupurt/gnucobol-nix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fgnucobol-nix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32000188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T01:30:11.292Z","updated_at":"2026-04-19T08:31:54.384Z","avatar_url":"https://github.com/rupurt.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gnucobol-nix\n\nNix flake to build [GnuCOBOL](https://sourceforge.net/p/gnucobol/code/HEAD/tree) and [GnuCOBOL Contrib](https://sourceforge.net/p/gnucobol/contrib/HEAD/tree)\non Linux \u0026 MacOS. This flake fetches source from Github mirrors [1](https://github.com/rupurt/GnuCOBOL), [2](https://github.com/rupurt/GnuCOBOL-Contrib)\nof the upstream SourceForge SVN repositories.\n\n## Usage\n\n```nix\n{\n  description = \"Your nix flake with GnuCOBOL. Hack the planet!\";\n\n  inputs = {\n    nixpkgs.url = \"github:nixos/nixpkgs/nixos-unstable\";\n    flake-utils.url = \"github:numtide/flake-utils\";\n    gnucobol= {\n      url = \"github:rupurt/gnucobol-nix\";\n      inputs.nixpkgs.follows = \"nixpkgs\";\n    };\n  };\n\n  outputs = {\n    flake-utils,\n    gnucobol,\n    nixpkgs,\n    ...\n  }: let\n    systems = [\"x86_64-linux\" \"aarch64-linux\" \"x86_64-darwin\" \"aarch64-darwin\"];\n    outputs = flake-utils.lib.eachSystem systems (system: let\n      pkgs = import nixpkgs {\n        inherit system;\n        overlays = [\n          gnucobol.overlay\n        ];\n      };\n    in {\n      # nix fmt\n      formatter = pkgs.alejandra;\n\n      # nix develop -c $SHELL\n      devShells.default = pkgs.mkShell {\n        name = \"default dev console\";\n\n        packages = with pkgs; [\n          gnucobol-pkgs.gnucobol.bin\n          gnucobol-pkgs.esqloc\n        ];\n      };\n    });\n  in\n    outputs;\n}\n```\n\n## Utilities\n\n### cobc\n\nAn open-source `COBOL` compiler\n\n```console\n\u003e cobc --help\nGnuCOBOL compiler for most COBOL dialects with lots of extensions\n\nUsage: cobc [options]... file...\n\nOptions:\n  -h, --help            display this help and exit\n  -V, --version         display compiler version information and exit\n  -dumpversion          display compiler version and exit\n  -i, --info            display compiler information (build/environment)\n                        and exit\n...\n```\n\n### cobcrun\n\n`COBOL` driver program for `GnuCOBOL` modules\n\n```console\n\u003e cobcrun --help\nGnuCOBOL module loader\n\nUsage: cobcrun [options] PROGRAM [parameter ...]\n  or:  cobcrun options\n\nOptions:\n  -h, --help                      display this help and exit\n  -V, --version                   display version information for cobcrun + runtime and exit\n  -dumpversion                    display runtime version and exit\n  -i, --info                      display runtime information (build/environment)\n  -v, --verbose                   display extended output with --info\n  -c \u003cfile\u003e, --config=\u003cfile\u003e      set runtime configuration from \u003cfile\u003e\n  -r, --runtime-config            display current runtime configuration\n                                  (value and origin for all settings)\n  -M \u003cmodule\u003e, --module=\u003cmodule\u003e  set entry point module name and/or load path\n                                  where -M module prepends any directory to the\n                                  dynamic link loader library search path\n                                  and any basename to the module preload list\n                                  (COB_LIBRARY_PATH and/or COB_PRELOAD)\n\nReport bugs to: bug-gnucobol@gnu.org\nor (preferably) use the issue tracker via the home page.\nGnuCOBOL home page: \u003chttps://www.gnu.org/software/gnucobol/\u003e\nGeneral help using GNU software: \u003chttps://www.gnu.org/gethelp/\u003e\n```\n\n### cob-config\n\nShell script which simplifies configuring applications against a particular version\nof the `GnuCOBOL` library.\n\n```console\n\u003e cob-config\nThis is a console script which simplifies configuring applications\nagainst a particular version of the GnuCOBOL library.\n\nUsage: cob-config [options]\n\nechos configuration variables of libcob (GnuCOBOL).\n\nOptions:\n  --prefix           echos the package-prefix of libcob (GnuCOBOL)\n  --exec-prefix      echos the executable-prefix of libcob (GnuCOBOL)\n\n  --cflags           echos the C compiler flags needed to compile with libcob (GnuCOBOL)\n  --libs             echos the libraries needed to link with libcob (GnuCOBOL)\n\n  --version          echos the release+patchdate version of libcob (GnuCOBOL)\n\n  --bindir           echos the directory containing libcob (GnuCOBOL) programs\n  --datarootdir      echos the data root for libcob (GnuCOBOL)\n  --datadir          echos the directory containing libcob (GnuCOBOL) data\n  --includedir       echos the directory containing libcob (GnuCOBOL) header files\n  --libdir           echos the directory containing libcob (GnuCOBOL) libraries\n  --mandir           echos the directory containing libcob (GnuCOBOL) manpages\n\n  --help             prints this message\n```\n\n### gcsort\n\nA sort tool that implements a subset of the Micro Focus `MFSORT` utility\n\n```console\n\u003e gcsort --help\n________________________________________________________________________________________\n gcsort help\n gcsort is a utility to sort, merge, copy and join records in a file into a\n   specified order in GnuCOBOL environment.\n________________________________________________________________________________________\n Syntax case insensitive\n Return code : 0 (ok) - 4 (warning) - 16 (error)\n________________________________________________________________________________________\nUsage with file parameters  : gcsort \u003coptions\u003e take filename\nUsage from command line     : gcsort \u003coptions\u003e \u003ccontrol statements\u003e\n________________________________________________________________________________________\ngcsort options\n-fsign=[ASCII|EBCDIC] define display sign representation\n-fcolseq=[NATIVE|ASCII|EBCDIC] collating sequence to use\n-febcdic-table=\u003ccconv-table\u003e/\u003cfile\u003e     EBCDIC/ASCII translation table\n-mt=\u003cnum\u003e  number of threads to be used | -mt dynamical number of threads to be used\n________________________________________________________________________________________\ngcsort control statements\nNotations: '{name}' = parameters , '|' = Alternative format of control statement\n========================================================================================\n                Section for SORT, MERGE and COPY control statements\n========================================================================================\n SORT | MERGE | COPY FIELDS Control statement for Sort, Merge, Copy file(s)\n________________________________________________________________________________________\n USE                 Declare input file(s)\n GIVE                Declare output file\n [ SUM FIELDS ]      Sum fields for same record key, or eliminate duplicate keys)\n [ RECORD     ]      Record control statement\n [ INCLUDE    ]      Select input records that respect include condition(s)\n [ OMIT       ]      Omit input records that respect omit condition(s)\n [ INREC      ]      Reformat input record Before sort, merge or copy operation\n [ OUTREC     ]      Reformat input record After sort, merge or copy operation\n [ OUTFIL     ]      Create one or more output files for sort,merge or copy operation\n [ OPTION     ]      Specifies option for control statements\n________________________________________________________________________________________\ngcsort\n    SORT | MERGE | COPY\n         FIELDS({Pos},{Len},{FormatType},{Order}, ...)          |\n         FIELDS({Pos},{Len},{Order}, ...),FORMAT={FormatType}   |\n         FIELDS=COPY\n...\n```\n\n## Docker\n\n```console\n\u003e docker build . -t gnucobol:latest\n#0 building with \"default\" instance using docker driver\n\n#1 [internal] load build definition from Dockerfile\n#1 transferring dockerfile: 3.25kB done\n#1 DONE 0.1s\n...\n```\n\n\n## Development\n\n```console\n\u003e nix develop -c $SHELL\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupurt%2Fgnucobol-nix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frupurt%2Fgnucobol-nix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupurt%2Fgnucobol-nix/lists"}