{inputs, ...}: { perSystem = { system, pkgs, lib, inputs', ... }: let upkgs = inputs'.nixpkgs.legacyPackages; chromePkgs = import inputs.nixpkgs { inherit system; config.allowUnfree = true; config.google-chrome.enableWideVine = true; }; in { packages = lib.mkMerge [ { advcp = upkgs.callPackage ./advcp {}; "rofi/unicode" = upkgs.callPackage ./rofi-unicode {}; } (lib.mkIf pkgs.stdenv.isLinux { inherit (inputs'.switcher.packages) switcher; }) (lib.mkIf (system == "x86_64-linux") { inherit (chromePkgs) google-chrome; }) ]; }; }