mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-05 08:22:06 +00:00
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
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:
parent
065e016524
commit
c223fd4aea
1 changed files with 19 additions and 0 deletions
19
flake.nix
19
flake.nix
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue