!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

194 Members
57 Servers

Load older messages


SenderMessageTime
18 Feb 2023
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
https://github.com/yarnpkg/berry
Yeah I knew about it but have mostly tried to ignore its existence. We don't have tooling for it so something like node2nix (that locks in Nix code rather than yarn.lock) might be one of the only solutions
17:11:05
1 Mar 2023
@robert:funklause.dedotlambda How can we make the npmInstallHook work with workspaces? https://github.com/NixOS/nixpkgs/pull/218923 03:18:59
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
How can we make the npmInstallHook work with workspaces? https://github.com/NixOS/nixpkgs/pull/218923
I planned to dig in to npm at some point to figure out why it is convinced it still needs to get dep metadata from the internet when the entire lockfile is cached. Because as far as I remember, it should otherwise theoretically work. Alternatively if all of the packages are in the npm registry you could just fetch from there and it doesn't have that problem
11:37:24
6 Mar 2023
@amardeeps:matrix.orgamardeeps joined the room.11:52:49
9 Mar 2023
@dandellion:dodsorf.asDandellion joined the room.03:25:04
10 Mar 2023
@dandellion:dodsorf.asDandellion

I have a js package which is fighting me every step of the way here: https://github.com/dali99/nixpkgs/commit/79b02a249d096a20f7c0e9984ffb58cac6dde9f2

With downgrading to node 16 and running node-gyp in the package config there, some compilation happens, but when I run it I get

Instantiation error:
Error: /nix/store/dy4amgvdks5xjlbadikyiikb12az2204-ldf-server-3.3.0/libexec/@ldf/server/node_modules/hdt/build/Release/hdt.node: undefined symbol: _ZNK9cds_utils9BitString4saveERSo
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1275:18)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)
    at Module.require (node:internal/modules/cjs/loader:1093:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object.<anonymous> (/nix/store/dy4amgvdks5xjlbadikyiikb12az2204-ldf-server-3.3.0/libexec/@ldf/server/node_modules/hdt/lib/hdt.js:5:19)
    at Module._compile (node:internal/modules/cjs/loader:1191:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)

So it seems it's not linking libcds properly?

Any ideas on what's going on here?

06:14:34
@dandellion:dodsorf.asDandellion *

I have a js package which is fighting me every step of the way here: https://github.com/dali99/nixpkgs/commit/79b02a249d096a20f7c0e9984ffb58cac6dde9f2

With downgrading to node 16 and running node-gyp in the package config there, some compilation happens, but when I run it I get

Instantiation error:
Error: /nix/store/dy4amgvdks5xjlbadikyiikb12az2204-ldf-server-3.3.0/libexec/@ldf/server/node_modules/hdt/build/Release/hdt.node: undefined symbol: _ZNK9cds_utils9BitString4saveERSo
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1275:18)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)
    at Module.require (node:internal/modules/cjs/loader:1093:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object.<anonymous> (/nix/store/dy4amgvdks5xjlbadikyiikb12az2204-ldf-server-3.3.0/libexec/@ldf/server/node_modules/hdt/lib/hdt.js:5:19)
    at Module._compile (node:internal/modules/cjs/loader:1191:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)

So it seems it's not linking libcds properly?

Any ideas on what's going on?

06:14:42
@lily:lily.flowersLily Foster
In reply to @dandellion:dodsorf.as

I have a js package which is fighting me every step of the way here: https://github.com/dali99/nixpkgs/commit/79b02a249d096a20f7c0e9984ffb58cac6dde9f2

With downgrading to node 16 and running node-gyp in the package config there, some compilation happens, but when I run it I get

Instantiation error:
Error: /nix/store/dy4amgvdks5xjlbadikyiikb12az2204-ldf-server-3.3.0/libexec/@ldf/server/node_modules/hdt/build/Release/hdt.node: undefined symbol: _ZNK9cds_utils9BitString4saveERSo
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1275:18)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)
    at Module.require (node:internal/modules/cjs/loader:1093:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object.<anonymous> (/nix/store/dy4amgvdks5xjlbadikyiikb12az2204-ldf-server-3.3.0/libexec/@ldf/server/node_modules/hdt/lib/hdt.js:5:19)
    at Module._compile (node:internal/modules/cjs/loader:1191:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)

So it seems it's not linking libcds properly?

Any ideas on what's going on?

How are you running it? I can get --help output just fine from building your branch
18:07:40
@dandellion:dodsorf.asDandellion

yeah, it's only when trying it a hdt datasource (which is the recommended datasource):

{
  "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/server/^3.0.0/components/context.jsonld",
  "@id": "urn:ldf-server:my",
  "import": "preset-qpf:config-defaults.json",

  "title": "My Linked Data Fragments server",

  "datasources": [
    {
      "@id": "urn:ldf-server:mySparqlDatasource",
      "@type": "SparqlDatasource",
      "datasourceTitle": "DBpedia (Virtuoso)",
      "description": "DBpedia with a Virtuoso back-end",
      "datasourcePath": "dbpedia-sparql",
      "sparqlEndpoint": "https://dbpedia.org/sparql"
    },
    {
      "@id": "urn:ldf-server:myHdtDatasource",
      "@type": "HdtDatasource",
      "datasourceTitle": "My HDT file",
      "description": "My dataset with a HDT back-end",
      "datasourcePath": "myhdt",
      "file": "somehdt.hdt"
    }
  ],

  "prefixes": [
    { "prefix": "rdf",         "uri": "http://www.w3.org/1999/02/22-rdf-syntax-ns#" },
    { "prefix": "rdfs",        "uri": "http://www.w3.org/2000/01/rdf-schema#" },
    { "prefix": "xsd",         "uri": "http://www.w3.org/2001/XMLSchema#" },
    { "prefix": "dc",          "uri": "http://purl.org/dc/terms/" },
    { "prefix": "foaf",        "uri": "http://xmlns.com/foaf/0.1/" },
    { "prefix": "dbpedia",     "uri": "http://dbpedia.org/resource/" },
    { "prefix": "dbpedia-owl", "uri": "http://dbpedia.org/ontology/" },
    { "prefix": "dbpprop",     "uri": "http://dbpedia.org/property/" },
    { "prefix": "hydra",       "uri": "http://www.w3.org/ns/hydra/core#" },
    { "prefix": "void",        "uri": "http://rdfs.org/ns/void#" }
  ]
}

Like this config ^

18:31:26
@lily:lily.flowersLily FosterAh, I guess I could try to test that. What is libcds though? Is that part of the package?18:32:09
@dandellion:dodsorf.asDandellionIt's some datastructure library that seems to be shipped with https://github.com/RubenVerborgh/HDT-Node18:32:58
@dandellion:dodsorf.asDandellionin the deps submodule18:33:07
13 Mar 2023
@aktaboot:tchncs.deaktaboot anyone has come into similar problem ? :An unexpected error occurred: "ENOENT: no such file or directory, open '/homeless-shelter/.yarnrc'". 20:59:53
@aktaboot:tchncs.deaktaboot https://0x0.st/HiFd.nix 21:00:30
@aktaboot:tchncs.deaktaboot needed to add export HOME=$(mktemp -d) 21:10:44
21 Mar 2023
@gdamjan:spodeli.orggdamjan joined the room.20:43:25
24 Mar 2023
@robert:funklause.dedotlambdaHas anyone ever tried packaging an electron-forge app in Nixpkgs?00:11:51
@robert:funklause.dedotlambdaThere seems no way around electron-forge downloading the electron binary. If someone knows one please tell me02:11:09
25 Mar 2023
@ambroisie:belanyi.fr@ambroisie:belanyi.fr I have a package that converted from yarn.lock to pnpm-lock.yaml 11:34:12
@ambroisie:belanyi.fr@ambroisie:belanyi.frI don't have any experience with the latter, what's the usual way of packaging those in nixpkgs 11:34:39
@ambroisie:belanyi.fr@ambroisie:belanyi.frA 2 seconds search lead me to: https://github.com/cvent/pnpm-lock-export11:34:56
@ambroisie:belanyi.fr@ambroisie:belanyi.fr Which isn't packaged in nixpkgs... and also uses pnpm-lock.yaml 11:35:17
@ambroisie:belanyi.fr@ambroisie:belanyi.fr * A 2 seconds search led me to: https://github.com/cvent/pnpm-lock-export11:37:51
@lily:lily.flowersLily Foster
In reply to @ambroisie:belanyi.fr
Which isn't packaged in nixpkgs... and also uses pnpm-lock.yaml
Is it in npm registry?
12:47:51
@lily:lily.flowersLily FosterThe registry tarball will have a package-lock.json if so12:48:05
@ambroisie:belanyi.fr@ambroisie:belanyi.frNo idea, I don't know the JS ecosystem funnily enough12:48:16
@ambroisie:belanyi.fr@ambroisie:belanyi.frMy only experience is packaging some front-ends for nixpkgs :')12:48:29
@lily:lily.flowersLily FosterWish I didn't know JS sometimes 🫠12:51:16
@ambroisie:belanyi.fr@ambroisie:belanyi.frSeems to be on npmjs.com12:51:58
@lily:lily.flowersLily Foster Yep it is. So use fetchzip and https://registry.npmjs.org/pnpm-lock-export/-/pnpm-lock-export-${version}.tgz 12:52:35

There are no newer messages yet.


Back to Room ListRoom Version: 6