1 #!/usr/bin/env nix-shell
2 #!nix-shell -p nix-update -i bash
3 # shellcheck shell=bash
5 set -o errexit
-o pipefail
-o nounset
-o errtrace
6 shopt -s inherit_errexit
10 NIXPKGS_ROOT
="$(git rev-parse --show-toplevel)"
13 nix-update pipewire-media-session
14 outputs
=$
(nix-build .
-A pipewire-media-session
)
16 conf_files
=$
(find "$p/nix-support/" -name '*.conf.json')
17 for c
in $conf_files; do
18 file_name
=$
(basename "$c")
19 if [[ ! -e "nixos/modules/services/desktops/pipewire/media-session/$file_name" ]]; then
20 echo "New file $file_name found! Add it to the module config and passthru tests!"
22 install -m 0644 "$c" "nixos/modules/services/desktops/pipewire/media-session/"