{
  allowUnfreePredicate = with builtins;
  let
    getName = pkg: (parseDrvName pkg.name).name;
  in pkg: elem (getName pkg) [
    "slack"
    "spotify"
  ];
  pulseaudio = true;
}

{
  allowUnfreePredicate =
  let nixpkgs = import <nixpkgs> {};
  in pkg: builtins.elem (nixpkgs.lib.getName pkg) [
    "slack"
    "spotify"
  ];
  pulseaudio = true;
}

Fix Nix "unfree" for new `lib.getName` built-in
Fix Nix "unfree" for new `lib.getName` built-in
