diff options
author | Matthew Justin Bauer <mjbauer95@gmail.com> | 2018-02-11 21:52:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-11 21:52:16 -0600 |
commit | 5b59084e00db2cd6d0b359f3acca17f1fafbf3c5 (patch) | |
tree | 0c19a7a63629ec5dc17d7a4787b6b017397dce9a /pkgs/build-support/emacs/buffer.nix | |
parent | 0fb2ac4e20bb942b9d7796fc1699afa307fdc422 (diff) | |
download | nixpkgs-5b59084e00db2cd6d0b359f3acca17f1fafbf3c5.tar nixpkgs-5b59084e00db2cd6d0b359f3acca17f1fafbf3c5.tar.gz nixpkgs-5b59084e00db2cd6d0b359f3acca17f1fafbf3c5.tar.bz2 nixpkgs-5b59084e00db2cd6d0b359f3acca17f1fafbf3c5.tar.lz nixpkgs-5b59084e00db2cd6d0b359f3acca17f1fafbf3c5.tar.xz nixpkgs-5b59084e00db2cd6d0b359f3acca17f1fafbf3c5.tar.zst nixpkgs-5b59084e00db2cd6d0b359f3acca17f1fafbf3c5.zip |
Filter nix-buffer packages
Null packages cause an error
Diffstat (limited to 'pkgs/build-support/emacs/buffer.nix')
-rw-r--r-- | pkgs/build-support/emacs/buffer.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/emacs/buffer.nix b/pkgs/build-support/emacs/buffer.nix index 75e660d0214..550163ddd69 100644 --- a/pkgs/build-support/emacs/buffer.nix +++ b/pkgs/build-support/emacs/buffer.nix @@ -4,7 +4,8 @@ { lib, writeText, inherit-local }: rec { - withPackages = pkgs: let + withPackages = pkgs': let + pkgs = builtins.filter (x: x != null) pkgs'; extras = map (x: x.emacsBufferSetup pkgs) (builtins.filter (builtins.hasAttr "emacsBufferSetup") pkgs); in writeText "dir-locals.el" '' (require 'inherit-local "${inherit-local}/share/emacs/site-lisp/elpa/inherit-local-${inherit-local.version}/inherit-local.elc") |