mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
Merge pull request #170015 from adisbladis/emacs-manual-packages-updater
emacs: Add update script for manually packaged packages
This commit is contained in:
commit
357a8492ef
10
pkgs/applications/editors/emacs/elisp-packages/update
Executable file
10
pkgs/applications/editors/emacs/elisp-packages/update
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
./update-from-overlay
|
||||
|
||||
./update-manual
|
||||
git commit -m "emacs.pkgs.manualPackages: $(date --iso)" -- .
|
7
pkgs/applications/editors/emacs/elisp-packages/update-manual
Executable file
7
pkgs/applications/editors/emacs/elisp-packages/update-manual
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
nix-build --no-out-link update-manual.nix | xargs -n 1 -P $(nproc) bash -c
|
@ -0,0 +1,11 @@
|
||||
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)
|
Loading…
Reference in New Issue
Block a user