nix: add base update script
Some checks are pending
Build / Find uncached packages (push) Waiting to run
Build / build-uncached (push) Blocked by required conditions
Run Checks / check (NIXPKGS_ALLOW_INSECURE=1 nix flake check --accept-flake-config --impure) (push) Waiting to run
Run Checks / check (nix run .#alejandra-custom -- -c . -e ./npins) (push) Waiting to run
Run Checks / build (push) Blocked by required conditions
Nix / nix (push) Waiting to run

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69645dbcb71e436bbb00edaaf2d2f47da7e0
This commit is contained in:
raf 2025-10-03 10:47:06 +03:00
commit c223fd4aea
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -95,6 +95,25 @@
packages = [pkgs.npins];
};
};
apps = {
update-pkgs = {
type = "app";
program = lib.getExe (
pkgs.writeShellApplication {
name = "update";
text = ''
nix-shell --show-trace "${nixpkgs.outPath}/maintainers/scripts/update.nix" \
--argstr skip-prompt true \
--arg predicate '(
let prefix = builtins.toPath ./pkgs; prefixLen = builtins.stringLength prefix;
in (_: p: p.meta ? position && (builtins.substring 0 prefixLen p.meta.position) == prefix)
)'
'';
}
);
};
};
};
flake = {