-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduction of update.sh script
- Loading branch information
1 parent
3aa0550
commit 0b86fcd
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
rootDir="$(git rev-parse --show-toplevel)" | ||
|
||
nixpkgs=$(nix eval --raw -f "$rootDir" "inputs.nixpkgs.outPath") | ||
flake=$(nix eval --raw -f "$rootDir") | ||
|
||
nix-shell --show-trace "${nixpkgs}/maintainers/scripts/update.nix" \ | ||
--arg include-overlays "[(import $rootDir).overlays.default]" \ | ||
--arg keep-going 'true' \ | ||
--arg predicate "( | ||
let | ||
prefix = \"$flake/pkgs/\"; | ||
prefixLen = builtins.stringLength prefix; | ||
in | ||
(path: pkg: (builtins.substring 0 prefixLen pkg.meta.position) == prefix) | ||
)" |