https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
11 lines
401 B
Nix
11 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)
|