!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

534 Members
109 Servers

Load older messages


SenderMessageTime
19 Oct 2025
@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
@matthewcroughan:defenestrate.itmatthewcroughanWill this work with https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/systemd/default.nix#L496-L498 existing?12:07:54
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)i have no idea, i will find out12:09:10
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)currently the thing is giving me trouble and i don't know nearly enough meson for this shit12:09:26
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)i wanted to do an unstable build, turns out its all kinds of busted12:09:39
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)ugh its just broken with LTO12:20:05
@matthewcroughan:defenestrate.itmatthewcroughanWhat is, systemd?12:22:21
@matthewcroughan:defenestrate.itmatthewcroughanYeah systemd lto seems not to work12:22:28
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)no, pwaccess12:22:35
@matthewcroughan:defenestrate.itmatthewcroughanoh, that too then I guess 12:22:40
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)its all kinds of broken, but i have a build going12:22:56
@matthewcroughan:defenestrate.itmatthewcroughanI was curious how much space systemd would save with LTO 12:22:59
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)only took 3 patches...12:23:04
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)okay, one patch was unnecessary, but i'll need yet another patch to resolve the cyclic deps against pam12:46:21
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)but thats alright, i know pam pretty well. I already chased cyclic deps on their last update...12:47:15
@matthewcroughan:defenestrate.itmatthewcroughan Huh yeah util-linux-minimal is still used even if you set util-linux to the full one in an overlay 13:11:32

Show newer messages


Back to Room ListRoom Version: 6