!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

205 Members
59 Servers

Load older messages


SenderMessageTime
10 Nov 2023
@lily:lily.flowersLily Fosteryeah the wrapper would replace that23:03:57
@lily:lily.flowersLily Fosterand do that for you23:04:00
@lily:lily.flowersLily Fosterbut like, you'd still have to start the wrapper somehow23:04:16
@lily:lily.flowersLily FosterIf it's nixos, just making it a systemd service would be easiest, but otherwise you could come up with something else23:04:42
@peter-lustig:matrix.orgpeter-lustighow do I start the wrapper with systemd23:05:03
@peter-lustig:matrix.orgpeter-lustigproblem is i do not even understand the wrapper23:05:15
@peter-lustig:matrix.orgpeter-lustigall of this is black magic to me right now23:06:23
@lily:lily.flowersLily Foster It is a shell script that basically makes a file in ${drv}/bin/sveltepackage and that shell script does ${nodejs-slim_20}/bin/node ${drv}/lib/node_modules/sveltepackage (which is where the above derivation moved build to) 23:06:28
@lily:lily.flowersLily Foster so it is effectively a node build that doesn't have environment requirements that like node is in PATH or build is in current working directory and such 23:06:57
@lily:lily.flowersLily Foster (so you don't need to do more than just run the wrapper. since node build would require a bunch of environment nonsense to get to work) 23:07:20
@lily:lily.flowersLily FosterSorry i'm not great at explaining rn :(23:07:45
@peter-lustig:matrix.orgpeter-lustig
In reply to @lily:lily.flowers
Sorry i'm not great at explaining rn :(
Could you maybe help me later? I also have some more questions
23:08:40
@peter-lustig:matrix.orgpeter-lustigBecause I worked for too long today, tired23:08:51
@lily:lily.flowersLily FosterSure! Later is fine23:08:58
@lily:lily.flowersLily Foster(assuming later means tomorrow, that'll probably be better for me too)23:09:07
@peter-lustig:matrix.orgpeter-lustigyes :)23:09:18
@peter-lustig:matrix.orgpeter-lustigI ping you then, thanks23:09:22
@lily:lily.flowersLily Foster
In reply to @janne.hess:helsinki-systems.de
Full reproducer with the original files: https://github.com/dasJ/broken-npm-test
frontend-npm-deps> [2023-11-10T23:15:37Z DEBUG isahc::handler] Could not resolve host: 16.0.0-beta.8

Hmmmm it really doesn't like this and assumes it's a tarball url i think? https://github.com/dasJ/broken-npm-test/blob/8c6d8ed9b180a66a81b133f68bf467e12bcbe3be/package-lock.json#L2817

23:18:12
@lily:lily.flowersLily Fosteri'll try to look at it later and might have a fix23:18:27
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deah didn't spot that23:22:55
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.destrange23:23:01
@lily:lily.flowersLily Fosteri mean if it's a genuine format npm puts stuff in, i guess we should support it23:24:45
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @lily:lily.flowers
i mean if it's a genuine format npm puts stuff in, i guess we should support it
I have no idea but I assume a very old npm does out that in. It's an internal project from another company that I'm packaging so I cannot give any more information on how that file was produced
23:37:53
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de* In reply to @lily:lily.flowers i mean if it's a genuine format npm puts stuff in, i guess we should support it I have no idea but I assume a very old npm does out that in. It's an internal project from another company that I'm packaging so I don't have any more information on how that file was produced23:38:09
@lily:lily.flowersLily Fosterit's package aliasing and valid syntax: https://docs.npmjs.com/cli/v10/using-npm/package-spec#aliases23:42:48
@lily:lily.flowersLily Foster do you think you could open a nixpkgs issue about it and assign to me so i don't forget? @[Janne Heß] 23:43:21
@lily:lily.flowersLily Fosterthis is where that version spec came from btw: https://github.com/vuejs/vue-cli/blob/ff24edb66361a504446a141525f9981bf34e8931/packages/%40vue/cli-service/package.json#L8323:45:32
@lily:lily.flowersLily Foster* this is where that version spec came from btw: https://github.com/vuejs/vue-cli/blob/v4.5.4/packages/%40vue/cli-service/package.json#L8323:45:47
11 Nov 2023
@szucsitg:matrix.orgszucsitg
In reply to @lily:lily.flowers
but you aren't using workspace packaging then?
Could you help me what do you mean by this? Also you mentioned that I should be not link node_modules but without it it fails on the unlink error.
05:57:31
@szucsitg:matrix.orgszucsitgI was digging more into the source code, and I noticed there is a mkYarnWorkspace this what are you referring to?08:22:08

Show newer messages


Back to Room ListRoom Version: 6