unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Time for ocaml-xzy.scm and reorganizing OCaml packages?
@ 2023-01-11 19:05 Simon Tournier
  2023-01-11 20:20 ` Julien Lepiller
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Tournier @ 2023-01-11 19:05 UTC (permalink / raw)
  To: Guix Devel; +Cc: Julien Lepiller, pukkamustard

Hi,

Maybe it is time for ocaml-xzy.scm. :-)

Currently, the file gnu/packages/ocaml.scm contains 315 define-public.
Maybe, it would make sense to have:

 + ocaml.scm for compiler and essentials (as ocaml-findlib or dune)
 + ocaml-xyz.scm for ocaml-<foo> packages
 + ocaml-apps.scm for standalone program written in OCaml as unison,
   ocamlmod, etc
 + ocaml-legacy.scm for the old ocaml4.0x things

WDYT?

Well, with the question of the new ocaml5 thing. :-)

Trying to package some OCaml, I note that the OCaml package named
camlzip is not prefixed with ’ocaml-’ although it can only be used as a
library, IIUC.

--8<---------------cut here---------------start------------->8---
$ tree $(guix build camlzip)
/gnu/store/r7p7azlfwrjs5c6kbwb50pvlqxi4k776-camlzip-1.11
├── bin
├── lib
│   └── ocaml
│       └── site-lib
│           ├── camlzip
│           │   └── META
│           └── zip
│               ├── dllcamlzip.so
│               ├── gzip.cmi
│               ├── gzip.cmt
│               ├── gzip.cmti
│               ├── gzip.cmx
│               ├── gzip.mli
│               ├── libcamlzip.a
│               ├── META
│               ├── zip.a
│               ├── zip.cma
│               ├── zip.cmi
│               ├── zip.cmt
│               ├── zip.cmti
│               ├── zip.cmx
│               ├── zip.cmxa
│               ├── zip.cmxs
│               ├── zip.mli
│               ├── zlib.cmi
│               ├── zlib.cmt
│               ├── zlib.cmti
│               ├── zlib.cmx
│               └── zlib.mli
└── share
    └── doc
        └── camlzip-1.11
            └── LICENSE

9 directories, 24 files
--8<---------------cut here---------------end--------------->8---

Moreover, “guix import opam -r camlzip” returns,

        (define-public ocaml-camlzip
          (package
            (name "ocaml-camlzip")

Well, therefore I would be expecting ocaml-camlzip to be consistent with
the Guix naming convention.  And with this large gnu/packages/ocaml.scm
file containing all the OCaml related stuff, I am guessing that it’s
time to reorganize a bit.  WDYT?

Cheers,
simon
Message-ID: <867cxs51um.fsf@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-18  0:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 19:05 Time for ocaml-xzy.scm and reorganizing OCaml packages? Simon Tournier
2023-01-11 20:20 ` Julien Lepiller
2023-01-17 22:14   ` Simon Tournier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).