IRC channel logs
2022-09-29.log
back to list of logs
<PurpleSym>Is there an easy way to figure out in which module a package has been defined? I see `package-location`, but it provides a path. <PurpleSym>The only way I see right now would be to parse the file and check the `define-module` expression. <rekado>package-location maps cleanly to a module name <rekado>package->code in (guix import print) contains package-module-name <rekado>it transforms package-location to a module name by splitting on / <PurpleSym>Are you okay with GPLv3’ing the script you shared earlier, rekado ? <PurpleSym>I have a rough version that imports the entire CRAN into a usable channel now. <zimoun>PurpleSym: package-location returns a <location>. Then the file as string is via location-file, I am read correctly. <zimoun>I mean, if I read correctly. :-) <lagash>Takes awhile to catch up doesn't it? :)