!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

672 Members
Rust154 Servers

Load older messages


SenderMessageTime
12 May 2026
@hexa:lossy.networkhexaRedacted or Malformed Event14:27:29
@hexa:lossy.networkhexahm, without mypyc, indeed14:28:00
@hexa:lossy.networkhexa
diff --git a/pkgs/build-support/rust/fetch-cargo-vendor.nix b/pkgs/build-support/rust/fetch-cargo-vendor.nix
index 2802bf9e73f1..f97c270e731a 100644
--- a/pkgs/build-support/rust/fetch-cargo-vendor.nix
+++ b/pkgs/build-support/rust/fetch-cargo-vendor.nix
@@ -3,7 +3,7 @@
   stdenvNoCC,
   runCommand,
   writers,
-  python3Packages,
+  python3,
   cargo,
   gitMinimal,
   nix-prefetch-git,
@@ -11,6 +11,14 @@
 }:
 
 let
+  python = python3.override {
+    self = python;
+    packageOverrides = final: prev: {
+      charset-normalier = prev.charset-normalizer.override { withMypyc = false; };
+    };
+  };
+  python3Packages = python.pkgs;
+
   replaceWorkspaceValues = writers.writePython3Bin "replace-workspace-values" {
     libraries = with python3Packages; [
       tomli
diff --git a/pkgs/development/python-modules/charset-normalizer/default.nix b/pkgs/development/python-modules/charset-normalizer/default.nix
index 5137ceb0e83f..c3650a402f17 100644
--- a/pkgs/development/python-modules/charset-normalizer/default.nix
+++ b/pkgs/development/python-modules/charset-normalizer/default.nix
@@ -8,6 +8,7 @@
   pytestCheckHook,
   requests,
   setuptools,
+  withMypyc ? !isPyPy,
 }:
 
 buildPythonPackage rec {
@@ -30,9 +31,9 @@ buildPythonPackage rec {
   build-system = [
     setuptools
   ]
-  ++ lib.optional (!isPyPy) mypy;
+  ++ lib.optional (withMypyc) mypy;
 
-  env.CHARSET_NORMALIZER_USE_MYPYC = lib.optionalString (!isPyPy) "1";
+  env.CHARSET_NORMALIZER_USE_MYPYC = lib.optionalString (withMypyc) "1";
 
   nativeCheckInputs = [ pytestCheckHook ];
 
14:33:05
@hexa:lossy.networkhexaRedacted or Malformed Event14:33:10
@emilazy:matrix.orgemilywonder if it makes sense to RIIR the fetcher so that the cycle can be broken locally14:33:26
@hexa:lossy.networkhexahm, not quite yet escaped the infinite recursion14:36:13
@figsoda:matrix.orgfigsoda hexa u had a typo in charset-normalizer in your patch 14:51:32
@hexa:lossy.networkhexathanks for checking :D14:51:41
@hexa:lossy.networkhexayeah, that works14:52:10
@figsoda:matrix.orgfigsodathat sounds like the better plan in the long term, but it will still need some bootstrapping (within rust stuff) to work, so you don't have cargo -> fetchCargoVendor -> importCargoLock -> cargo14:58:08
@tomasajt:matrix.orgToma BTW we can also still revive fetchCargoTarball (aka. the internal cargo vendor logic) for internal use only 20:05:01
13 May 2026
@drupol:matrix.orgPol I am working onto packaging oxc and the build is very long and it seems that there are a couple of failing tests. Do you have some advice to share to speed up the process ? Currently, I just run nix-build -A oxc then wait 30 minutes, then modify the package.nix file, adding a --skip=... line, then repeat. 13:15:30
@drupol:matrix.orgPol * I am working onto packaging oxc and the build is very long and it seems that there are a couple of failing tests. Do you have some advice to share to speed up the process ? Currently, I just run nix-build -A oxc then wait 30 minutes, then modify the package.nix file, adding a --skip=... line, then repeat. Is there a trick I could do to restart the build where it was, some kind of "during development mode", just for writing the package.nix file correctly. 13:41:19
@drupol:matrix.orgPol * I am working onto packaging oxc and the build is very long and it seems that there are a couple of failing tests. Do you have some advice to share to speed up the process ? Currently, I just run nix-build -A oxc then wait 30 minutes, then modify the package.nix file, adding a --skip=... line, then repeat. Is there a trick I could do to restart the build where it was, some kind of "during development mode", just for writing the package.nix file correctly ? 13:41:27
@drupol:matrix.orgPol * I am working onto packaging oxc (https://github.com/oxc-project/oxc) and the build is very long and it seems that there are a couple of failing tests. Do you have some advice to share to speed up the process ? Currently, I just run nix-build -A oxc then wait 30 minutes, then modify the package.nix file, adding a --skip=... line, then repeat. Is there a trick I could do to restart the build where it was, some kind of "during development mode", just for writing the package.nix file correctly ? 13:49:40
@figsoda:matrix.orgfigsodaoxc is a monorepo of different tools, we already have oxfmt and oxlint in nixpkgs, what specifically are you looking to package?13:57:22
@drupol:matrix.orgPolOooh it's in there already, shit I must not have seen it13:57:48
@figsoda:matrix.orgfigsoda and for development i believe you can nix-shell or nix develop and run the hooks yourself manually 13:57:57
@drupol:matrix.orgPol#facepalm... 13:58:04
@drupol:matrix.orgPolThank you13:58:06
14 May 2026
@pederbs:pvv.ntnu.no@pederbs:pvv.ntnu.no left the room.00:23:10
@puercopop:matrix.org@puercopop:matrix.org left the room.03:52:30
@tjni:matrix.org@tjni:matrix.org left the room.04:57:54
@drupol:matrix.orgPol changed their display name from Pol to Pol (out, touching grass).07:37:49
@drupol:matrix.orgPol changed their display name from Pol (out, touching grass) to Pol.16:31:46
@esperlily:matrix.orgEsperLily [she/her] Alyssa Ross: apologies for losing track of this PR for a while but I just replied to your comment on https://github.com/NixOS/nixpkgs/pull/510169 (cargo: remove runtime references to cargo-bootstrap). I don't currently have a good way to actually keep up with github stuff (since github notifications don't work very well) beyond just remembering to look at any open PRs, so feel free to poke me if I lose track again 22:51:02

There are no newer messages yet.


Back to Room ListRoom Version: 6