Skip to content

Commit

Permalink
feat: introduction of update.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
aldoborrero committed Feb 13, 2024
1 parent 3aa0550 commit 0b86fcd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions maintainers/scripts/update.sh
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)
)"

0 comments on commit 0b86fcd

Please sign in to comment.