!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

538 Members
110 Servers

Load older messages


SenderMessageTime
25 Nov 2025
@artturin:matrix.orgArtturin

eb:

(
  { config, pkgs, ... }:
  {
    options.nixpkgsNative.pkgs = lib.mkOption {
      type = lib.types.pkgs;
      default = null;
      description = "Native nixpkgs for the system being cross-compiled to get native packages to reduce build amounts";
    };
                                                                                                                         
    config.nixpkgsNative.pkgs = import pkgs.path {
      localSystem = config.nixpkgs.crossSystem;
      inherit (config.nixpkgs) crossSystem config;
    };
                                                                                                                         
  }
)

config.nixpkgsNative.pkgs.mpv-unwrapped

20:51:23
@artturin:matrix.orgArtturinmade this thing so I can pass the native pkgs around without using specialArgs20:51:39
@ebnull:matrix.orgeb

Nice, ty.

I did a similar thing to avoid specialArgs, but with pkgs.unstable as an overlay for nixpkgs-unstable when I needed it downstream for other reasons.

21:51:05

There are no newer messages yet.


Back to Room ListRoom Version: 6