| 11 Mar 2026 |
srasu | I don't know if that will be feasible | 02:01:54 |
srasu | I think I figured it out for my case | 02:58:27 |
srasu | I ended up needing to make my own installPhase that copied over the project to the $out and used makeWrapper to make scripts that call node to run the relevant scripts. | 02:59:00 |
srasu | {
lib,
pkgs,
buildNpmPackage,
importNpmLock,
nodejs ? pkgs.nodejs_22,
...
}:
buildNpmPackage (finalAttrs: {
pname = "ooye";
version = "3.4";
src = builtins.fetchGit {
url = https://gitdab.com/cadence/out-of-your-element/;
rev = "c55e6c611585f4c1dbfd8c767e5f872fbeb0c66a";
ref = "v${finalAttrs.version}";
};
npmDepsHash = "";
npmDeps = importNpmLock { npmRoot = finalAttrs.src; };
npmConfigHook = importNpmLock.npmConfigHook;
dontNpmBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out
mkdir -p $out/bin
cp -R . $out/source
makeWrapper ${nodejs}/bin/node $out/bin/ooye-setup --add-flags $out/source/scripts/setup.js
makeWrapper ${nodejs}/bin/node $out/bin/ooye --add-flags $out/source/start.js
runHook postInstall
'';
npmPackFlags = [ "--ignore-scripts" ];
})
Like this | 02:59:36 |
| benwebb joined the room. | 06:27:08 |
| 14 Mar 2026 |
| amadaluzia -> 4d2.org changed their display name from amadaluzia to amadaluzia[uorg]. | 18:50:18 |
| amadaluzia joined the room. | 19:30:57 |
| amadaluzia -> 4d2.org changed their display name from amadaluzia[uorg] to amadaluzia -> 4d2.org. | 21:22:21 |
| 16 Mar 2026 |
| purepani changed their display name from purepani to purepanid. | 05:55:09 |
| purepani changed their display name from purepanid to purepani. | 05:55:50 |
| 19 Mar 2026 |
| René changed their display name from Rene to René. | 13:43:25 |
| 23 Mar 2026 |
| azban joined the room. | 22:17:24 |
azban | are node binaries supposed to be able to run without having node specified as a package in your environment? | 22:17:48 |
dish [Fox/It/She] | yes | 22:23:50 |
| 24 Mar 2026 |
azban | any idea why that wouldn't be the case with this config? https://github.com/NixOS/nixpkgs/blob/51600fecc3d3a57353c4f9cf72a22f1f9efc58ae/pkgs/by-name/ea/eas-cli/package.nix | 00:04:48 |
azban | getting: env: ‘node’: No such file or directory.. Do I need to wrap this to point to the write node? | 00:05:35 |
azban | * getting: env: ‘node’: No such file or directory.. Do I need to wrap this to point to the right node? | 00:05:49 |
azban | that seemed to do it | 00:11:34 |
dish [Fox/It/She] | In reply to @azban:matrix.org any idea why that wouldn't be the case with this config? https://github.com/NixOS/nixpkgs/blob/51600fecc3d3a57353c4f9cf72a22f1f9efc58ae/pkgs/by-name/ea/eas-cli/package.nix the file that gets symlinked as $out/bin/eas in postFixup doesn't have its shebang fixed with patchShebangs since patchShebangsHook runs in fixupPhase which is right before the code in postFixup runs | 02:44:51 |
dish [Fox/It/She] | and so it doesnt have a correct shebang that would point to a nodejs already | 02:45:08 |
dish [Fox/It/She] | and having the proper shebang would register the correct nodejs as a dependency and then you wouldn't have to wrap it | 02:45:31 |
dish [Fox/It/She] | so tl;dr the packaging is slightly wrong and then it doesnt work properly | 02:47:01 |
dish [Fox/It/She] | hmm, why doesn't nodeJsInstallExecutables link to nodejs-slim instead of nodejs? Not installing corepack and npm with everything could save a few dozen mb everywhere, which I think would be a good tradeoff. | 16:15:16 |
dish [Fox/It/She] | * hmm, why doesn't nodeJsInstallExecutables link to nodejs-slim instead of nodejs? Not installing corepack and npm with everything could save a few dozen mb everywhere, which I think would be a good space saving | 16:15:25 |
| 25 Mar 2026 |
| raboof joined the room. | 10:26:35 |
raboof | I'm surprised not more people have been hit by nodejs.src disappearing (https://github.com/NixOS/nixpkgs/pull/501357) | 10:27:32 |
| 5 Dec 2022 |
| @grahamc:nixos.org changed the history visibility to "world_readable" from "shared". | 14:44:17 |
hexa | Thanks | 14:44:25 |
Winter (she/her) | In reply to @hexa:lossy.network Thanks it doesn't look like he read the message, are you sure it wasn't just your server syncing the history :P | 14:45:19 |
hexa | ? | 14:45:48 |