!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

702 Members
Rust162 Servers

Load older messages


SenderMessageTime
12 May 2026
@hexa:lossy.networkhexayou can probably move to a simpler base14:24:30
@hexa:lossy.networkhexa anway, the chain is mypy -> charset_normalizer -> requests -> fetch-cargo-venor 14:25:01
@hexa:lossy.networkhexa and the loop is now ast-serialize -> mypyp -> .... 14:25:13
@hexa:lossy.networkhexaRedacted or Malformed Event14:25:31
@gsaurel:laas.frnim65sso we can bootstrap with a version that don't has mypy ?14:26:38
@gsaurel:laas.frnim65s* so we can bootstrap with a version that don't have mypy ?14:26:49
@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

Show newer messages


Back to Room ListRoom Version: 6