Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Filter nix-buffer packages

Null packages cause an error

authored by Matthew Justin Bauer and committed by GitHub 5b59084e 0fb2ac4e

+2 -1
+2 -1
pkgs/build-support/emacs/buffer.nix
··· 4 4 { lib, writeText, inherit-local }: 5 5 6 6 rec { 7 - withPackages = pkgs: let 7 + withPackages = pkgs': let 8 + pkgs = builtins.filter (x: x != null) pkgs'; 8 9 extras = map (x: x.emacsBufferSetup pkgs) (builtins.filter (builtins.hasAttr "emacsBufferSetup") pkgs); 9 10 in writeText "dir-locals.el" '' 10 11 (require 'inherit-local "${inherit-local}/share/emacs/site-lisp/elpa/inherit-local-${inherit-local.version}/inherit-local.elc")