!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

205 Members
59 Servers

Load older messages


SenderMessageTime
22 Oct 2023
@lily:lily.flowersLily Fosterand is supposed to fail gracefully in the absence of a binary being available?14:54:24
@lily:lily.flowersLily FosterCan you share your full build log?14:54:35
@lily:lily.flowersLily Fosterthey removed the ability for it to build at all, so the fallback fails 🙃 https://github.com/mapbox/mapbox-gl-native/pull/1574814:55:29
@lily:lily.flowersLily Fosterwhy is node.js ecosystem such an ecological disaster14:55:39
@lily:lily.flowersLily Fosterthis pr would fix it; https://github.com/maplibre/maplibre-native/pull/53514:56:00
@lily:lily.flowersLily Foster * this pr would fix it: https://github.com/maplibre/maplibre-native/pull/53514:56:03
@lily:lily.flowersLily Fosteri'm not sure what a good option is to work around that for now though :(14:57:13
@lily:lily.flowersLily Fosterideally you can just patch the package.json in the dependency, but we don't have the machinery yet to patch npm dependencies like that...14:57:38
@lily:lily.flowersLily Foster(more details at https://github.com/maplibre/maplibre-native/issues/851 too)14:58:15
@lily:lily.flowersLily Fosterwhat you are trying to package that is using maplibre-native?14:58:33
@daniel:nopemail.orgdanielJust an application I'm building myself. I found the same references you linked, so I think I will have to discuss it with the maintainers15:00:39
@daniel:nopemail.orgdanielSeems awful to patch by hand15:00:51
@lily:lily.flowersLily Fosteri'm really not sure how you would patch by hand tbh :(15:02:08
@lily:lily.flowersLily Fosterunless you forked it i guess15:02:15
@daniel:nopemail.orgdanielYeah 😅 Thanks, though!15:03:45
@lily:lily.flowersLily Fosterif you have any ideas though, let me know. or let me know if you figure out something, i am curious if you come up with a workaround!15:07:22
@lily:lily.flowersLily Fosteri'm thinking once we have redone lockfile fixup, we could maybe also work on adding an arg for passing dep patches that get picked up and applied in the fetcher15:09:13
@lily:lily.flowersLily Fosterwhich would help with situations like this15:09:25
@lily:lily.flowersLily Foster You know. Actually. Since we do npm ci --ignore-scripts iirc, we could probably add a hook between that and the npm rebuild to allow patching deps before running install scripts too 15:10:03
@lily:lily.flowersLily Foster hmmmm i'll see about doing that, since that would be a hacky easy way to allow doing such dep fixup 15:11:12
@lily:lily.flowersLily Foster @Marie btw i haven't forgotten, i just didn't get a chance to do nodejs stuff last night. hopefully i can do later today (i still have reminder set) 15:44:00
@marie:marie.cologneMarieokay, thank you for telling me and please don't feel stressed15:48:14
@lily:lily.flowersLily Foster
In reply to @marie:marie.cologne
okay, thank you for telling me and please don't feel stressed
i'm not and reminders are okay for me :)
(i'm too scattered to exist without them tbh.....)
16:01:50
@lily:lily.flowersLily Foster* i'm don't feel stressed and reminders are okay for me, don't worry :) (i'm too scattered to exist without them tbh.....)16:02:59
@c0ba1t:matrix.orgCobaltHi, does someone know a workaround for overriding the default node prefetcher phase/hook? I would like to alter the working directory of prefetcher to a subdir of src. 21:28:11
@c0ba1t:matrix.orgCobaltAnd preferably also keep the node modules from this subdir associated with it for the install phase, though that can be patched with installPhase otherwise (wouldn't be the only overwrite their).21:29:12
@c0ba1t:matrix.orgCobalt(for context: My goal is to build a package from a monorepo. This package requires type declarations from another package on the same level)21:31:06
@c0ba1t:matrix.orgCobalt * (for context: The goal is to build a package from a monorepo. This package requires type declarations from another package on the same level)21:31:16
@c0ba1t:matrix.orgCobaltAny help would be appreciated :)21:32:22
@c0ba1t:matrix.orgCobalt

Update: Got it solved via patching the dependency link rather than updating the prefetcher dir:

{
            prePatch = ''
              sed -Ei 's/\.\.\/types\/\*/${
                lib.strings.escape [ "/" "+" "*" "?" "(" ")" "[" "]" ]
                (toString proofbuddy)
              }\/types\/\*/' tsconfig.json
            '';
}```

21:44:17

Show newer messages


Back to Room ListRoom Version: 6