mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
12 lines
401 B
Nix
12 lines
401 B
Nix
let
|
|
pkgs = import ../../../../../. {
|
|
config.allowBroken = true;
|
|
};
|
|
inherit (pkgs) lib emacs;
|
|
inherit (lib) isDerivation hasAttr filterAttrs mapAttrs attrValues;
|
|
|
|
# Extract updateScript's from manually package emacs packages
|
|
hasScript = filterAttrs (_: v: isDerivation v && hasAttr "updateScript" v) emacs.pkgs.manualPackages;
|
|
|
|
in attrValues (mapAttrs (_: v: v.updateScript) hasScript)
|