!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

529 Members
110 Servers

Load older messages


SenderMessageTime
19 Oct 2025
@qyliss:fairydust.spaceAlyssa Ross If you want to be very thorough you can gate between !lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform but I don't expect we support any libcs where the answer wouldn't be yes 10:20:15
@qyliss:fairydust.spaceAlyssa Ross * If you want to be very thorough you can gate behind !lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform but I don't expect we support any libcs where the answer wouldn't be yes 10:20:23
@matthewcroughan:defenestrate.itmatthewcroughanwasm?10:20:38
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/virtualsquare/vde-210:21:45
@matthewcroughan:defenestrate.itmatthewcroughanhuh10:21:46
@matthewcroughan:defenestrate.itmatthewcroughan
  • With VDE it is possible to create a virtual network of UML machines running
    on several real computer
10:21:52
@matthewcroughan:defenestrate.itmatthewcroughanI wonder if we could make a VM test driver that is powered by UML instead of qemu10:22:05
@matthewcroughan:defenestrate.itmatthewcroughanit doesn't look like the thing I need to patch is actually in the vde2 source tree though10:22:49
@matthewcroughan:defenestrate.itmatthewcroughan there is no config.h there 10:23:01
@matthewcroughan:defenestrate.itmatthewcroughanah it's a generated one postConfigure10:23:18
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/virtualsquare/vde-2/blob/master/CMakeLists.txt#L28410:23:22
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all) wait whats the difference between lib.systems.equals and == ? 10:24:07
@matthewcroughan:defenestrate.itmatthewcroughanreadability I guess? :D10:24:18
@opna2608:matrix.orgPunahttps://github.com/NixOS/nixpkgs/pull/23833110:26:53
@matthewcroughan:defenestrate.itmatthewcroughanNow the pytest issue, I don't know how I cna fix that 10:26:57
@matthewcroughan:defenestrate.itmatthewcroughanbecause I thought I already had fixed it in my override10:27:08
@matthewcroughan:defenestrate.itmatthewcroughan
      # https://github.com/NixOS/nixpkgs/pull/451506
      python3 = super.python3.override {
        packageOverrides = pyfinal: pyprev: {
          pytest = pyprev.pytest.overrideAttrs {
            dontWrapPythonPrograms = false;
          };
        };
      };

10:27:52
@opna2608:matrix.orgPuna* https://github.com/NixOS/nixpkgs/pull/238331 function equality in Nix is unreliable, and the elaborated platform attrsets contain functions10:28:49
@matthewcroughan:defenestrate.itmatthewcroughanBut when the VM test gets invoked, somehow this goes out the window 10:33:01
@matthewcroughan:defenestrate.itmatthewcroughanimage.png
Download image.png
10:33:10
@matthewcroughan:defenestrate.itmatthewcroughanLike the above overlay works fine for the nixos system, but not for a vmtest of that same config 10:35:04
@matthewcroughan:defenestrate.itmatthewcroughanIt's so weird, it's like the test framework is ignoring my overlays 10:42:18
@matthewcroughan:defenestrate.itmatthewcroughan
  # See https://nixos.org/manual/nixpkgs/unstable/#tester-invalidateFetcherByDrvHash
  # or doc/build-helpers/testers.chapter.md
  nixosTest =
    let
      /*
        The nixos/lib/testing-python.nix module, preapplied with arguments that
        make sense for this evaluation of Nixpkgs.
      */
      nixosTesting = (
        import ../../../nixos/lib/testing-python.nix {
          inherit (stdenv.hostPlatform) system;
          inherit pkgs;
          extraConfigurations = [
            (
              { lib, ... }:
              {
                config.nixpkgs.pkgs = lib.mkDefault pkgsLinux;
              }
            )
          ];
        }
      );
    in
    test:
    let
      loadedTest = if builtins.typeOf test == "path" then import test else test;
      calledTest = lib.toFunction loadedTest pkgs;
    in
    nixosTesting.simpleTest calledTest;

10:43:50
@matthewcroughan:defenestrate.itmatthewcroughan🧠10:43:55
@matthewcroughan:defenestrate.itmatthewcroughanYeah I don't think there's a way to fix that with an overlay 10:54:27
@matthewcroughan:defenestrate.itmatthewcroughanthat pytest thing broke a lot 10:54:39
@matthewcroughan:defenestrate.itmatthewcroughan I found that -Oz makes a minimal systemd closure 20M -> 18M 11:22:34
@matthewcroughan:defenestrate.itmatthewcroughanI now wonder what space saving effect that could have on the rest of the system if it were applied globally11:22:52
@matthewcroughan:defenestrate.itmatthewcroughanimage.png
Download image.png
11:51:05
@matthewcroughan:defenestrate.itmatthewcroughanweird, why does the systemd initrd depend on two util-linux?11:51:14

Show newer messages


Back to Room ListRoom Version: 6