Skip to content

Commit 0b86fcd

Browse files
committed
feat: introduction of update.sh script
1 parent 3aa0550 commit 0b86fcd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

maintainers/scripts/update.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
rootDir="$(git rev-parse --show-toplevel)"
6+
7+
nixpkgs=$(nix eval --raw -f "$rootDir" "inputs.nixpkgs.outPath")
8+
flake=$(nix eval --raw -f "$rootDir")
9+
10+
nix-shell --show-trace "${nixpkgs}/maintainers/scripts/update.nix" \
11+
--arg include-overlays "[(import $rootDir).overlays.default]" \
12+
--arg keep-going 'true' \
13+
--arg predicate "(
14+
let
15+
prefix = \"$flake/pkgs/\";
16+
prefixLen = builtins.stringLength prefix;
17+
in
18+
(path: pkg: (builtins.substring 0 prefixLen pkg.meta.position) == prefix)
19+
)"

0 commit comments

Comments
 (0)