git.iko.soy/typeable/nixpkgs
on master help sign in
Filter nix-buffer packages

Null packages cause an error

commit5b59084e00db2cd6d0b359f3acca17f1fafbf3c5 authorMatthew Justin Bauer <mjbauer95@gmail.com> dateSun 11 Feb 2018, 21:52 (9 years ago) parent0fb2ac4
1 file changed+2−1
pkgs/build-support/emacs/buffer.nix+2−1
pkgs/build-support/emacs/buffer.nix+2−1
@@ -4,7 +4,8 @@
44{ lib, writeText, inherit-local }:
55
66rec {
7− withPackages = pkgs: let
7+ withPackages = pkgs': let
8+ pkgs = builtins.filter (x: x != null) pkgs';
89 extras = map (x: x.emacsBufferSetup pkgs) (builtins.filter (builtins.hasAttr "emacsBufferSetup") pkgs);
910 in writeText "dir-locals.el" ''
1011 (require 'inherit-local "${inherit-local}/share/emacs/site-lisp/elpa/inherit-local-${inherit-local.version}/inherit-local.elc")