!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

199 Members
57 Servers

Load older messages


SenderMessageTime
18 Dec 2023
@sandro:supersandro.deSandro 🐧We can't just xz compress them and then commit them? 😅13:49:12
@whentze:matrix.orgWanja HentzeI think you're misunderstanding me13:49:29
@whentze:matrix.orgWanja HentzeI'm not saying let's commit a bunch of lockfiles to nixpkgs13:49:41
@whentze:matrix.orgWanja Hentze the use case is "I have a nodejs project and my lockfile is already in git, I want to write a default.nix" 13:50:28
@whentze:matrix.orgWanja Hentzethis has nothing to do with nixpkgs other than that it would be nice to get the packaging helper function from nixpkgs13:51:48
@whentze:matrix.orgWanja Hentzehence me asking "is it worthwhile to ship packaging helpers in nixpkgs that are not dogfooded by nixpkgs?"13:53:33
@sandro:supersandro.deSandro 🐧Maybe depends on size but e.g. vendoring yarn2nix seemed more of a headache then it needs to be. Other things are just put in as a CLI is that's possible15:15:05
@whentze:matrix.orgWanja Hentzeoh wait15:16:02
@whentze:matrix.orgWanja Hentzeyou're talking about vendoring the packaging helper, not the packages15:16:15
@whentze:matrix.orgWanja Hentzein this case, it's really not a ton of code: https://github.com/adisbladis/buildNodeModules15:16:46
19 Dec 2023
@adis:blad.is@adis:blad.isWe could port over the expressions that already vendor a lock file. No point in having fat FODs for those cases. 02:51:09
@adis:blad.is@adis:blad.is
In reply to @whentze:matrix.org
in this case, it's really not a ton of code: https://github.com/adisbladis/buildNodeModules
If I were to add it to nixpkgs I'd consider it the new upstream and archive my repo
02:53:19
20 Dec 2023
@sandro:supersandro.deSandro 🐧
In reply to @adis:blad.is
We could port over the expressions that already vendor a lock file.
No point in having fat FODs for those cases.
for remote building it is likely still faster. Copying hundreds of derivations over is extremely slow and takes probably longer than rebuilding them.
02:20:59
@platonic.mason:matrix.orgMason Mackamananyone have experience wrangling vite?02:37:36
@adis:blad.is@adis:blad.is
In reply to @sandro:supersandro.de
for remote building it is likely still faster. Copying hundreds of derivations over is extremely slow and takes probably longer than rebuilding them.
That's only true if you're privileged enough to have a fast Internet connection.
That's not true for users in the developing world.
06:31:58
@adis:blad.is@adis:blad.isAnd faster isn't the only concern. Bytes transferred matters. 06:32:38
21 Dec 2023
@peter-lustig:matrix.orgpeter-lustig
>     at VariableDeclarator.bind (file:///build/2rdr2hwic3kd9pwpgp32s206yh5kqwhs-source/node_modules/rollup/dist/es/shared/node-entry.js:4639:23)
       >
       > ERROR: `npm build` failed

Is this some nix issue again?

I can build the project fine with npm run build

15:40:21
@peter-lustig:matrix.orgpeter-lustigbut with nix the build command seems to fail for some reason15:40:52
@peter-lustig:matrix.orgpeter-lustig

My build script (left the hash out for abbreviation):

packages.${system}.default = pkgs.buildNpmPackage {
      name = "project-build";
      src = ./.;
      installPhase = ''
        mkdir $out
        cp -r build/* $out
        cp package.json $out
        cp -r node_modules $out
      '';
    };
  };
15:42:05
@peter-lustig:matrix.orgpeter-lustig More explicitly getting is not exported by "^@virtual:$env/static/private", imported by, but I do not get this error when I only run npm run build without doing anything nix. 15:45:05
@lily:lily.flowersLily Foster
In reply to @peter-lustig:matrix.org
>     at VariableDeclarator.bind (file:///build/2rdr2hwic3kd9pwpgp32s206yh5kqwhs-source/node_modules/rollup/dist/es/shared/node-entry.js:4639:23)
       >
       > ERROR: `npm build` failed

Is this some nix issue again?

I can build the project fine with npm run build

hmmm it's unclear. can you send full build output? the error is before that
15:53:43
@peter-lustig:matrix.orgpeter-lustig
In reply to @lily:lily.flowers
hmmm it's unclear. can you send full build output? the error is before that
yep wait
15:56:33
@peter-lustig:matrix.orgpeter-lustighttps://pastebin.com/dfAjZx0K15:58:10
@lily:lily.flowersLily Fosteruhhh why is it needing github api env vars15:58:51
@lily:lily.flowersLily Fosterduring build15:58:54
@peter-lustig:matrix.orgpeter-lustigidk15:59:33
@peter-lustig:matrix.orgpeter-lustigas mentioned15:59:36
@lily:lily.flowersLily Fostergive me a sec so i can get out my laptop15:59:41
@peter-lustig:matrix.orgpeter-lustig it does not happen when I do npm run build without nix stuff 15:59:43
@lily:lily.flowersLily Foster
In reply to @peter-lustig:matrix.org
it does not happen when I do npm run build without nix stuff
yeah but do you have github env vars set?
15:59:57

Show newer messages


Back to Room ListRoom Version: 6