22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-17 05:15:28 +02:00
nixos-modules/lib/nix.nix
2023-01-02 22:23:00 +01:00

9 lines
329 B
Nix

{ lib, ... }:
{
# taken from https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/nix-daemon.nix#L828-L832
# a builder can run code for `gcc.arch` and inferior architectures
gcc-system-features = arch: [ "gccarch-${arch}" ]
++ map (x: "gccarch-${x}") lib.systems.architectures.inferiors.${arch};
}