unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Rodrigo Morales <moralesrodrigo1100@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Most used and least used build-system in Guix packages
Date: Wed, 12 Apr 2023 21:55:39 -0400	[thread overview]
Message-ID: <878rewlf50.fsf@gmail.com> (raw)
In-Reply-To: <CAGxMbPZ7OFMfhmrwtJxymZJHsqu0DamRC=innQd99XOaSuQwBA@mail.gmail.com> (Rodrigo Morales's message of "Wed, 12 Apr 2023 23:04:44 +0000")

Hello,

Rodrigo Morales <moralesrodrigo1100@gmail.com> writes:

> Table of Contents
> _________________
>
> 1. TL; DR
> 2. My findings
> 3. The question
>
>
> 1 TL; DR
> ========
>
>   Today, I was wondering what the most used build system and the least
>   one are. The most used build system is `gnu-build-system'. The least
>   used build system is `dub-build-system'. Here's how I found that out.
>
>
> 2 My findings
> =============
>
>   ,----
>   | (car %load-path)
>   `----
>
>   ,----
>   |
> /gnu/store/zc7dzsd10dd3pw60hircphz4vh1wlki0-guix-module-union/share/guile/site/3.0
>   `----
>
>   ,----
>   |
> dir="/gnu/store/zc7dzsd10dd3pw60hircphz4vh1wlki0-guix-module-union/share/guile/site/3.0"
>   | path="$dir/gnu/packages"
>   | grep -hREo '[a-zo-]+-build-system' $path | sort | uniq -c | sort -nr
>   `----
>
>   ,----
>   | 3893 gnu-build-system
>   | 2717 python-build-system

[...]


> 3 The question
> ==============
>
>   Does anyone know if there's a more accurate way of finding out this
>   information? I'm asking because my method also counts build systems
>   that are mentioned in comments. For example, if a file contains
>   comments that mention build systems, they are also counted.

Guix provides an API, so you could use it from the comfort of the 'guix
repl' REPL to query it, using fold-packages.

The following repo will surely provide some clues as to how to do that;
the following is an example querying all the packages that make use of
the emacs-build-system [0]

[0]  https://notabug.org/apteryx/guix-api-examples/src/master/emacs-packages-manifest.scm

Have fun!

-- 
Thanks,
Maxim


  reply	other threads:[~2023-04-13  1:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 23:04 Most used and least used build-system in Guix packages Rodrigo Morales
2023-04-13  1:55 ` Maxim Cournoyer [this message]
2023-04-13  9:40 ` Simon Tournier
2023-04-13 17:12 ` Martin Castillo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rewlf50.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=moralesrodrigo1100@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).