all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to get the package metadata as structured data?
@ 2016-08-04 18:37 Philippe Ombredanne
  0 siblings, 0 replies; 12+ messages in thread
From: Philippe Ombredanne @ 2016-08-04 18:37 UTC (permalink / raw)
  To: guix-devel

Is there a way to get all the package metadata as pure
data beside the html page [1] or the Guile sources [2]?
Like some JSON of sorts or similar?

That would be somewhat needed to audit the licenses
asserted in the metadata and compare them with actually
detected licenses.

 [1] https://www.gnu.org/software/guix/packages/
 [2] http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/linux.scm

-- 
Cordially
Philippe Ombredanne

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: How to get the package metadata as structured data?
@ 2016-08-04 20:49 David Craven
  2016-08-04 21:08 ` Ludovic Courtès
  0 siblings, 1 reply; 12+ messages in thread
From: David Craven @ 2016-08-04 20:49 UTC (permalink / raw)
  To: guix-devel

Hi Philippe,

Thank you for your interest in guix =)

All package metadata can be accessed easily through scheme. There is
no way to export this data currently, although it probably wouldn't be
too hard to implement.

The approach I was planning on taking is the following:
Take a package, remove all build-phases except unpack, add a phase to
run scancode and add the output json to the store.

This way guix already takes care of fetching and unpacking the package
and caching the result. Unless a build input changes, for example
scancode (an input to the scancode phase) is updated, or a scanned
package is updated, running a tool that I'll call `guix license` for
now will work of the json file that was already generated. This means
that improving the reporting or postprocessing the results doesn't
require rescanning a dependency.

Maybe someone else has other/better ;-) thoughts on this?

Cheers
David

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

end of thread, other threads:[~2016-08-10 23:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-04 18:37 How to get the package metadata as structured data? Philippe Ombredanne
  -- strict thread matches above, loose matches on Subject: below --
2016-08-04 20:49 David Craven
2016-08-04 21:08 ` Ludovic Courtès
2016-08-04 22:03   ` Cook, Malcolm
2016-08-05 10:17     ` David Craven
2016-08-05 11:04       ` David Craven
2016-08-05 12:40         ` Aljosha Papsch
2016-08-05 14:50         ` Philippe Ombredanne
2016-08-10 11:46           ` Ricardo Wurmus
2016-08-10 12:14             ` Catonano
2016-08-10 12:52               ` Ricardo Wurmus
2016-08-10 23:40                 ` Catonano

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.