| 8 Mar 2024 |
hexa | ok, ok | 22:54:39 |
hexa | this shouldn't be a contest anyway! | 22:54:45 |
Lily Foster | yeah i'm just messing with you :) | 22:54:55 |
Lily Foster | for this, you should be able to buildNpmPackage it yourself and copy it where it needs to be. you might even be able to get away without patching the _build.py to remove the npm install since as long as it doesn't have weird dep types, npm shouldn't try to re-reify stuff unnecessarily (but npm gets spooked very easily) | 22:56:00 |
hexa | In reply to @lily:lily.flowers yeah i'm just messing with you :) same, same | 22:56:21 |
hexa | pretix> running build
pretix> npm WARN reify Removing non-directory /build/source/src/pretix/static.dist/node_prefix/node_modules
pretix> npm ERR! code EAI_AGAINn: sill reify mark deleted [ [[Kectory /build/sour
pretix> npm ERR! syscall getaddrinfo
pretix> npm ERR! errno EAI_AGAIN
pretix> npm ERR! request to https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
pretix>
pretix> npm ERR! Log files were not written due to an error writing to the directory: /homeless-shelter/.npm/_logs
pretix> npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
| 23:20:29 |
hexa | dang | 23:20:30 |
hexa | Lily Foster: looks like I'm not getting away without patching 🙂 | 23:20:41 |
hexa | also … where is yallist suddenly coming from | 23:21:03 |
Lily Foster | damn, at least that's most of the way there | 23:21:06 |
hexa | oh, it is in the lock, so transitive dependecy | 23:21:18 |
hexa | indeed it is | 23:21:21 |
Lily Foster | In reply to @hexa:lossy.network also … where is yallist suddenly coming from i mean idk, check the lockfile | 23:21:24 |
Lily Foster | In reply to @hexa:lossy.network oh, it is in the lock, so transitive dependecy yep | 23:21:30 |
hexa |
pretix> npm WARN reify Removing non-directory /build/source/src/pretix/static.dist/node_prefix/node_modules
| 23:22:29 |
hexa | ah lol | 23:22:30 |
hexa | is it … in fact … deleting the symlink I created? | 23:22:38 |
hexa | how rude | 23:22:51 |
Lily Foster | yep that's now reification works. it adds and deletes | 23:22:51 |
Lily Foster | indeed | 23:22:54 |
hexa | copying it | 23:23:12 |
Lily Foster | In reply to @lily:lily.flowers yep that's now reification works. it adds and deletes (well sort of. it doesn't necessarily delete without prune, but some things it does) | 23:23:19 |
hexa | pretix> running build
pretix> npm ERR! code EACCESdealTree: timing idealTree Completed in 156msms
pretix> npm ERR! syscall mkdir
pretix> npm ERR! path /build/source/src/pretix/static.dist/node_prefix/node_modules/fsevents
pretix> npm ERR! errno -13
pretix> npm ERR! Error: EACCES: permission denied, mkdir '/build/source/src/pretix/static.dist/node_prefix/node_modules/fsevents'
pretix> npm ERR! [Error: EACCES: permission denied, mkdir '/build/source/src/pretix/static.dist/node_prefix/node_modules/fsevents'] {
pretix> npm ERR! errno: -13,
pretix> npm ERR! code: 'EACCES',
pretix> npm ERR! syscall: 'mkdir',
pretix> npm ERR! path: '/build/source/src/pretix/static.dist/node_prefix/node_modules/fsevents'
pretix> npm ERR! }
pretix> npm ERR!
pretix> npm ERR! The operation was rejected by your operating system.
pretix> npm ERR! It is likely you do not have the permissions to access this file as the current user
pretix> npm ERR!
pretix> npm ERR! If you believe this might be a permissions issue, please double-check the
pretix> npm ERR! permissions of the file and its containing directories, or try running
pretix> npm ERR! the command again as root/Administrator.
pretix>
pretix> npm ERR! Log files were not written due to an error writing to the directory: /homeless-shelter/.npm/_logs
pretix> npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
| 23:23:23 |
hexa | no preserve mode possibly | 23:23:30 |
Lily Foster | yeah probably | 23:23:40 |
hexa | yep, that did it | 23:24:06 |
| 9 Mar 2024 |
| Qyriad joined the room. | 00:37:30 |
hellwolf | Is it possible to create nix-shell script for single node scripts?
Something like:
#!/usr/bin/env nix-shell
#!nix-shell -l node -p node nodePackages.xyz nodePakcage.abc
However, since many dependencies are not available from nixpkgs, what would be the alternative?
| 09:36:09 |
hellwolf | * Is it possible to create nix-shell script for single node scripts?
Something like:
#!/usr/bin/env nix-shell
#!nix-shell -l node -p node nodePackages.xyz nodePakcage.abc
However, since many dependencies are not available from nixpkgs, what could be done instead?
| 09:36:19 |
| Linus changed their profile picture. | 12:35:53 |