!sUXcTulPzyhnqOiFPL:helsinki-systems.de

NixOS Perl

50 Members
14 Servers

Load older messages


SenderMessageTime
17 Aug 2022
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dein particular I want to check whether a module.build exists18:39:31
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de * in particular I want to check whether a Build.PL exists18:40:21
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.degot it ;)19:14:26
@stigo:matrix.orgstigo
19:15:29
@stigo:matrix.orgstigo *
curl -XPOST https://fastapi.metacpan.org/v1/file/_search -d '{
    "query" : { "filtered" : {
      "query" : {
        "query_string" : {
          "query" : "Build.PL",
          "fields" : [ "name" ] }
      },
      "filter" : { "and" : [
        { "term" : { "distribution" : "Module-Build" } },
        { "term" : { "status" : "latest" } }
      ]}
    }},
    "fields" : [ "distribution", "name" ],
    "size" : 20
  }'

19:15:33
@stigo:matrix.orgstigoHow did you do it? :)19:15:49
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @stigo:matrix.org
How did you do it? :)
https://github.com/stigtsp/nix-update-cpan/pull/3/files
19:16:00
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.denot sure if this is the cleanest way19:16:04
@stigo:matrix.orgstigoSeems like it19:16:22
@stigo:matrix.orgstigoEasier :)19:16:30
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dewhew :D19:16:45
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de

I guess I only need this then:

figure out and update propagatedBuildInputs, buildInputs, etc
19:17:10
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deDo you have any pointers? Is there even a way to distinguish between the propagated/regular inputs from the metacpan api?19:19:09
@stigo:matrix.orgstigoYeah I've done some work on it19:19:13
@stigo:matrix.orgstigo(not committed yet, on the other laptop)19:19:25
@stigo:matrix.orgstigoHm, was thinking to use checkInputs instead of buildInputs too btw19:19:49
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.denice, could you share it once you get back to the other machine? :)19:19:57
@stigo:matrix.orgstigoMETA.json should be correct19:19:58
@stigo:matrix.orgstigoYes ofc :)19:20:09
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de Does that matter? I thought the doCheck is true by default 19:20:17
@stigo:matrix.orgstigoAdded you as collaborator on the repo btw if thats useful19:20:20
@stigo:matrix.orgstigoNot for cross builds for instance19:20:26
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dehmmm I think I'll have to wrap my head around it more19:21:26
@stigo:matrix.orgstigoBut for perl runtime dependencies you want them in propagatedBuildInputs19:21:28
@stigo:matrix.orgstigo.. but cross builds have problems with Module::Build and friends anyway, have a rough idea on what to try now that 5.36.0 is in19:22:03
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @stigo:matrix.org
.. but cross builds have problems with Module::Build and friends anyway, have a rough idea on what to try now that 5.36.0 is in
Oh that would be awesome! Although our dependency on Module::Tiny should shrink a lot when we automatically use buildPerlPackage
19:22:47
@stigo:matrix.orgstigohave do do some $dayjob stuff now, (or $nightjob I guess it is soon) but can look at things a bit tomorrow eve19:23:18
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @stigo:matrix.org
But for perl runtime dependencies you want them in propagatedBuildInputs
so prereqs->configure + prereqs→build + prereqs→test into checkInputs and prereqs→runtime into propagatedBuildInputs?
19:23:41
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @stigo:matrix.org
have do do some $dayjob stuff now, (or $nightjob I guess it is soon) but can look at things a bit tomorrow eve
Thanks, have some day-fun :)
19:24:00
@stigo:matrix.orgstigoprobably build+configure into buildInputs19:24:05

Show newer messages


Back to Room ListRoom Version: 9