outputs: expose updateList

This commit is contained in:
Wroclaw 2025-04-07 22:29:56 +02:00
parent 837b3d1b96
commit 0abc5cc90f

View file

@ -73,6 +73,7 @@ self = {
builtins.attrValues
builtins.listToAttrs
];
updateList = import ./update-list.nix self;
# FIXME: currently impure
# NOTE: to run, you need to evaluate outputs.nix instead of default.nix
# nix-shell outputs.nix -A update
@ -80,9 +81,7 @@ self = {
updateScript = (self.packagesForSystem (builtins.currentSystem)).den-update-script;
in updateScript {
path = "";
packages = lib.pipe ./update-list.nix [
import
(x: x self)
packages = lib.pipe self.updateList [
lib.attrsToList
(lib.imap1 (i: {name, value}: {
name = builtins.toString i;