!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

211 Members
62 Servers

Load older messages


SenderMessageTime
4 Jul 2023
@lily:lily.flowersLily FosterIf you're trying to get something specific working, there is a yarn v2+ to yarn v1 lockfile rewriter in nixpkgs that some packages have used08:53:05
@janne.hess:helsinki-systems.deJanne Heß
In reply to @lily:lily.flowers
If you're trying to get something specific working, there is a yarn v2+ to yarn v1 lockfile rewriter in nixpkgs that some packages have used
That's possible? 👀
08:53:19
@lily:lily.flowersLily Foster

I thought it was. I may be misremembering?

(If it is though, it might be easier if yarn berry turns out to be a lot of trouble to create new tooling for atm)

08:54:09
@janne.hess:helsinki-systems.deJanne HeßSo good news: a yarn offline cache appears to be reproducible10:56:58
@janne.hess:helsinki-systems.deJanne Heß
  offlineCache = stdenvNoCC.mkDerivation {
    name = "cal.com-${version}-offline-cache";

    inherit src;

    nativeBuildInputs = [ yarn ];

    HOME = "/build";
    buildPhase = ''
      yarn config set enableTelemetry 0
      yarn config set cacheFolder $out
      yarn
    '';

    outputHashAlgo = "sha256";
    outputHashMode = "recursive";
    outputHash = "sha256-w/nwiMntMsi+G55iZF9QwdA7ZFe/XOtA19AUqboLFWA=";
  };
10:57:05
@janne.hess:helsinki-systems.deJanne Heß(we will see if this also builds in a couple of months…)10:57:39
@lily:lily.flowersLily Foster
In reply to @janne.hess:helsinki-systems.de
(we will see if this also builds in a couple of months…)
Wait this would still be yarn v1 right? We don't have yarn-berry in nixpkgs yet I thought
11:02:39
@lily:lily.flowersLily Foster(Oops meant to set that as a reply to the other message)11:02:55
@lily:lily.flowersLily Foster* (Oops, meant to set that as a reply to the other message)11:03:03
@janne.hess:helsinki-systems.deJanne Heß
In reply to @lily:lily.flowers
Wait this would still be yarn v1 right? We don't have yarn-berry in nixpkgs yet I thought
interesting… still manages to parse the v2 lockfile
11:49:39
@janne.hess:helsinki-systems.deJanne Heß
In reply to @lily:lily.flowers
Wait this would still be yarn v1 right? We don't have yarn-berry in nixpkgs yet I thought

yarn set version 3.4.1

13:37:00
5 Jul 2023
@adam:valkor.netadamcstephensmkYarnPackage reads the package.json from src. This should work as expected right? in https://github.com/NixOS/nixpkgs/pull/241314 the submitter is saying they're receiving this error when trying to build without copying package.json into nixpkgs: https://gist.github.com/GrahamcOfBorg/77965b591af2aef7b6a5c40bb0d0839113:45:33
@adam:valkor.netadamcstephenswhen i remove it and build everything works correctly13:46:05
@adam:valkor.netadamcstephens * when i remove it and build everything works correctly locally13:46:57
@lily:lily.flowersLily Foster
In reply to @adam:valkor.net
mkYarnPackage reads the package.json from src. This should work as expected right? in https://github.com/NixOS/nixpkgs/pull/241314 the submitter is saying they're receiving this error when trying to build without copying package.json into nixpkgs: https://gist.github.com/GrahamcOfBorg/77965b591af2aef7b6a5c40bb0d08391
That's IFD
14:01:40
@adam:valkor.netadamcstephensi see, so it's expected to copy the package.json into nixpkgs?14:02:16
@lily:lily.flowersLily FosterWith yarn2nix, yeah unfortunately14:09:53
@lily:lily.flowersLily FosterYou also need the yarn.lock and yarn.nix... it's, uh, unfortunate14:10:13
@adam:valkor.netadamcstephens
In reply to @lily:lily.flowers
You also need the yarn.lock and yarn.nix... it's, uh, unfortunate
so that PR should have both those files included a well?
14:11:50
@lily:lily.flowersLily Foster I didn't look at the PR, but probably? Try to build with --no-import-from-derivation and see what it needs 14:12:45
@adam:valkor.netadamcstephensok, yeah that reproduces the error14:15:08
@adam:valkor.netadamcstephensyarn.lock isn't necessary it seems14:15:49
@lily:lily.flowersLily FosterOh really? I may be misremembering then. I try to think about yarn2nix as little as I can14:16:27
@adam:valkor.netadamcstephensi was looking at pnpm-lock-export yesterday to see if i could add the newer lock file format. so you're telling me we probably don't want to go pnpm->yarn :)14:17:44
@adam:valkor.netadamcstephensI'd like to help find a solution for pnpm before too long since woodpecker is using it14:25:02
@lily:lily.flowersLily FosterWell I hope to dump yarn2nix at some point. We're cooking up newer tooling for yarn but it'll be a bit14:30:08
@adam:valkor.netadamcstephensthe quickest route for pnpm is probably to update the lock exporter, if i can wrap my head around what it's doing14:31:18
@ambroisie:belanyi.fr@ambroisie:belanyi.fr
In reply to @adam:valkor.net
i was looking at pnpm-lock-export yesterday to see if i could add the newer lock file format. so you're telling me we probably don't want to go pnpm->yarn :)
I think using yarn as a stopgap is good enough for our purposes
19:08:52
@ambroisie:belanyi.fr@ambroisie:belanyi.frAnd thanks for looking into it ❤️19:09:10
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
Well I hope to dump yarn2nix at some point. We're cooking up newer tooling for yarn but it'll be a bit
(We have that project board now for anyone who wants to see the rough priority/ordering for stuff. And of course help on any of the "todo" items is very appreciated)
19:22:20

Show newer messages


Back to Room ListRoom Version: 6