!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

210 Members
61 Servers

Load older messages


SenderMessageTime
22 Oct 2023
@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
@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:34
@c0ba1t:matrix.orgCobalt *

Edit: 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:46:55
24 Oct 2023
@daniel:nopemail.orgdanielI'm looking into this now, and I like the idea of a hook here. I'm not too familiar with hooks, so do you have any pointers to where to start?12:43:48
@lily:lily.flowersLily Foster
In reply to @daniel:nopemail.org
I'm looking into this now, and I like the idea of a hook here. I'm not too familiar with hooks, so do you have any pointers to where to start?
i mean the simplest would be to just add something like runHook preNpmRebuild in between those lines. But i'm not admittedly sure what the most intelligent way to handle it would be (and welcome input)
12:45:27
25 Oct 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.00:12:27
@ThorHop:matrix.org@ThorHop:matrix.org Lily Foster So remember that problem with vips and using pkg-config? I'm not sure, but I think that calling the npm-package.nix file (which just contains the npmBuildPackage function) I get the err root access problem again. I'm wondering if it would be a good idea to just shoehorn in a chown root:root -r *.* && npm run build into the bpmBuild flag... 13:54:41
@lily:lily.flowersLily Fosterwhat do you mean root access problem?13:55:07
@ThorHop:matrix.org@ThorHop:matrix.org I've also called the build from a callPackage function, not sure if that's.. the best idea 13:55:11
@ThorHop:matrix.org@ThorHop:matrix.org Lily Foster I'm getting the sharp binary root error. 13:55:32

Show newer messages


Back to Room ListRoom Version: 6