| 31 Oct 2023 |
Lily Foster | In reply to @lily:lily.flowers and no yarn2nix has a hard req on the package.json being available. you can package yarn stuff without it though in most situations (and it even avoids the yarn2nix bugs to do that....) (if you want an example of a yarn package done using mkDerivation i can give you a link to prior art in nixpkgs) | 10:44:25 |
Emma [it/its] ⚡️ | well ideally i'd like to not ship package.json in nixpkgs | 10:45:06 |
Lily Foster | here's an example where yarn2nix had some bug and the package was switched to using mkDerivation: https://github.com/NixOS/nixpkgs/pull/248107/files | 10:47:32 |
Lily Foster | if you would rather just dump yarn2nix/mkYarnPackage entirely | 10:47:47 |
Emma [it/its] ⚡️ | oh, that doesnt even look too messy | 10:48:21 |
Lily Foster | (one day we'll come back to buildYarnPackage PR...) | 10:48:51 |
Emma [it/its] ⚡️ | maybe | 10:49:19 |
Lily Foster | (idk i really want someone to join the node team so i'm not doing this alone...........) | 10:50:35 |
Emma [it/its] ⚡️ | im neither good at nix, nor knowledgeable at nodejs 😅 | 10:51:28 |
Lily Foster | unfortunate | 10:51:57 |
Lily Foster | one day i'll find someone to scam convince to join the team | 10:52:18 |
| * raitobezarius nods | 11:28:09 |
@janik0:matrix.org | In reply to @emma:conduit.rory.gay im neither good at nix, nor knowledgeable at nodejs 😅 you don't need to be, you just need to be motivated enough :D but I get if you don't want to touch it, I won't touch node stuff with a 10 meter pole | 11:42:06 |
Lily Foster | (yeah for real node.js is hell, don't subject yourself to that......) | 12:02:55 |
Cobalt | It's somewhat surprising that nixpkgs even has somewhat solid support given the mess that the Node ecosystem is at the moment. My expectations were that everything node-ish would just be marked as impure. | 12:06:16 |
Lily Foster | In reply to @c0ba1t:matrix.org It's somewhat surprising that nixpkgs even has somewhat solid support given the mess that the Node ecosystem is at the moment. My expectations were that everything node-ish would just be marked as impure. winter put in a lot more work than me to make it come together 😅 | 12:07:35 |
Lily Foster | idk we still have a lot of fixes to do | 12:07:43 |
Lily Foster | (and i have a lot of open PRs I can't convince anyone to review 🙈_ | 12:07:52 |
Lily Foster | * (and i have a lot of open PRs I can't convince anyone to review 🙈) | 12:07:54 |
Emma [it/its] ⚡️ | In reply to @lily:lily.flowers (yeah for real node.js is hell, don't subject yourself to that......) try installing multiple dotnet versions next to each other :p | 12:08:26 |
Emma [it/its] ⚡️ | hint: i had to write my own derivation to get it to work | 12:08:37 |
Lily Foster | okay dotnet is also hell | 12:08:42 |
Emma [it/its] ⚡️ | { pkgs ? import <nixpkgs> {} }:
pkgs.symlinkJoin {
name = "dotnet-pack";
paths = [ pkgs.dotnet-sdk_8 pkgs.dotnet-sdk_7 pkgs.dotnet-sdk ];
postBuild = ''
rm -rfv $out/bin
rm -rfv $out/dotnet
cp -rv ${pkgs.dotnet-sdk_8}/dotnet $out/
cp -rv ${pkgs.dotnet-sdk_8}/bin $out/
'';
}
| 12:08:46 |
Lily Foster | and dotnet has somehow more issues than nodejs with just casually downloading native code in deps and expecting it to work | 12:09:10 |
Emma [it/its] ⚡️ | somehow ive never had issues with that | 12:09:26 |
Emma [it/its] ⚡️ | (i do not develop within an FHS environment) | 12:09:38 |
Lily Foster | In reply to @lily:lily.flowers (and i have a lot of open PRs I can't convince anyone to review 🙈) (if any committers want to go over any of my PRs in this list, especially the backports to 23.05, that, um, would be nice 👉️👈️: https://github.com/orgs/NixOS/projects/37/views/1) | 12:12:42 |
Emma [it/its] ⚡️ | bottom moment /j | 12:15:21 |
Emma [it/its] ⚡️ | thats one large board o.o | 12:15:37 |
Cobalt | In reply to @lily:lily.flowers (if any committers want to go over any of my PRs in this list, especially the backports to 23.05, that, um, would be nice 👉️👈️: https://github.com/orgs/NixOS/projects/37/views/1) Tbh, it's easier to overlay the patch instead of waiting for nixpkgs: https://git.tu-berlin.de/nix/songbird/-/blob/main/modules/prefetch-fix.nix?ref_type=heads just a few lines + a tmp input | 12:19:09 |