!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

210 Members
61 Servers

Load older messages


SenderMessageTime
9 Oct 2023
@c0ba1t:matrix.orgCobalt
In reply to @lily:lily.flowers
No worries! If you're able, feel free to rerun it as much as you can in loop and just come back to it when you can. I'm pretty sure I think I got it now
Sure, I'll try with 50 runs for now. The first 10 were successful, so it seems resolved.
15:49:11
@lily:lily.flowersLily Foster Also thiloho ^ 15:49:15
@lily:lily.flowersLily Foster * Also thiloho, if you could try ^ 15:49:24
@lily:lily.flowersLily FosterI've opened https://github.com/NixOS/nixpkgs/pull/26001115:57:00
@c0ba1t:matrix.orgCobalt
In reply to @c0ba1t:matrix.org
Sure, I'll try with 50 runs for now. The first 10 were successful, so it seems resolved.
All 50 runs were successful
16:08:20
@marie:marie.cologneMarie
In reply to @lily:lily.flowers
Maybe Marie too
will do!
16:08:39
10 Oct 2023
@drupol:matrix.orgPol Hey, I'm trying to package Terminalizer with buildNpmPackage. 06:26:15
@drupol:matrix.orgPol
{ buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "terminalizer";
  version = "0.11.0";

  src = fetchFromGitHub {
    owner = "faressoft";
    repo = "terminalizer";
    rev = "v${version}";
    hash = "sha256-+62OM7pVtBRpeniO4e3X41R8nnk95Dk1EUL3HEEIZe4=";
  };

  npmDepsHash = "sha256-5em+VGNb+sbO7nPSvbo99fTi9O2RIUjBG2KvMRz6N6M=";

  meta.mainProgram = "terminalizer";
}
06:26:24
@drupol:matrix.orgPolAt the end of the build, it crashes... 06:26:32
@drupol:matrix.orgPol
      > Validating consistency between /build/source/package-lock.json and /nix/store/1481hlnkqx4vw8y25v60gliynk07dwla-terminalizer-0.11.0-npm-deps/package-lock.json
       > Installing dependencies
       > npm ERR! code ENOTCACHED
       > npm ERR! request to https://registry.npmjs.org/yallist failed: cache mode is 'only-if-cached' but no cached response is available.
       > 
       > npm ERR! Log files were not written due to an error writing to the directory: /nix/store/1481hlnkqx4vw8y25v60gliynk07dwla-terminalizer-0.11.0-npm-deps/_logs
       > npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
       > 
       > ERROR: npm failed to install dependencies
       >
       > Here are a few things you can try, depending on the error:

06:26:45
@drupol:matrix.orgPolDo you know what I can do to fix this?06:26:55
@drupol:matrix.orgPolFind terminalizer here: https://github.com/faressoft/terminalizer06:27:07
@drupol:matrix.orgPol *
       > Validating consistency between /build/source/package-lock.json and /nix/store/1481hlnkqx4vw8y25v60gliynk07dwla-terminalizer-0.11.0-npm-deps/package-lock.json
       > Installing dependencies
       > npm ERR! code ENOTCACHED
       > npm ERR! request to https://registry.npmjs.org/yallist failed: cache mode is 'only-if-cached' but no cached response is available.
       > 
       > npm ERR! Log files were not written due to an error writing to the directory: /nix/store/1481hlnkqx4vw8y25v60gliynk07dwla-terminalizer-0.11.0-npm-deps/_logs
       > npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
       > 
       > ERROR: npm failed to install dependencies
       >
       > Here are a few things you can try, depending on the error:

06:34:53
@drupol:matrix.orgPol I finally switched to asciinema but it would be nice to have Terminalizer as well :) 08:02:37
@lily:lily.flowersLily Foster
In reply to @drupol:matrix.org
Find terminalizer here: https://github.com/faressoft/terminalizer
Busted upstream lockfile. Yallist is missing integrity/resolved fields :(
10:29:35
@lily:lily.flowersLily FosterI do still have a half-written local branch to refactor lockfile fixup enough for allowing injecting that info, but I've been too preoccupied for the last month or two fixing stuff to finish that10:30:26
@lily:lily.flowersLily FosterI found this the other day if you wanted to PR to upstream a fixed lockfile: https://github.com/jeslie0/npm-lockfile-fix (and you could then fetchpatch it just fine)10:33:35
@drupol:matrix.orgPolThanks :) I'll might probably open a PR against the upstream project11:42:04
@marie:marie.cologneMarie Lily Foster: i ran some tests over night, 1000 runs without a failure 11:55:25
@lily:lily.flowersLily FosterLovely. I'll bug someone to review+merge the PR probably today or tomorrow11:56:01
@lily:lily.flowersLily FosterAlthough I did have one tweak i wanted to do to the function name to indicate it's slightly different purpose now11:56:50
@lily:lily.flowersLily FosterSo i'll probably push that (mostly cosmetic/semantic) change later today11:57:07
11 Oct 2023
@Cu3PO42:matrix.orgCu3PO42 joined the room.12:37:08
@ThorHop:matrix.org@ThorHop:matrix.org joined the room.12:38:38
@dukeofcool199:matrix.orgdukeofcool199 joined the room.14:25:16
@ahbk:matrix.orgI use NixOS btw joined the room.20:37:18
12 Oct 2023
@l_inus:matrix.orgLinus changed their profile picture.07:57:03
@ahbk:matrix.orgI use NixOS btw

Making progress with mkYarnPackage, but now I'm stuck with a dir deps not existing, everything builds and this error seems to occur in the install phase which is confusing:

ahbk on  main [✘!?] ❯ nix build
warning: Git tree '/home/frans/Desktop/ahbk' is dirty
error: builder for '/nix/store/xr0zjg6cqq893rygyxwacaqqxzay5vzw-ahbk-web.drv' failed with exit code 1;
       last 10 log lines:
       > .svelte-kit/output/server/index.js                            90.08 kB
       >
       > Run npm run preview to preview your production build locally.
       > 
       > > Using @sveltejs/adapter-node
       >   ✔ done
       > ✓ built in 4.80s
Done in 6.05s.
       > installing
       > mv: cannot stat 'deps': No such file or directory
       For full logs, run 'nix log /nix/store/xr0zjg6cqq893rygyxwacaqqxzay5vzw-ahbk-web.drv'.
12:02:21
@ahbk:matrix.orgI use NixOS btwoh wait I just had to override installPhase, nvm12:05:40
@jfvillablanca:matrix.orgjfvillablanca

hi, i am trying to package nativescript-cli with buildNpmPackage, i get an error

       > npm ERR!   code: 'MODULE_NOT_FOUND',
       > npm ERR!   requireStack: [ '/build/source/postinstall.js' ]

checking the repo, postinstall.js is at root of the directory. so I assume i need some preBuild hook to move postInstall.js to /build/source. Am I correct?

12:47:52

Show newer messages


Back to Room ListRoom Version: 6