3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/pipewire/update-pipewire.sh

26 lines
747 B
Bash
Raw Normal View History

2021-04-27 11:52:41 +01:00
#!/usr/bin/env nix-shell
#!nix-shell -p nix-update -i bash
# shellcheck shell=bash
set -o errexit -o pipefail -o nounset -o errtrace
shopt -s inherit_errexit
shopt -s nullglob
IFS=$'\n'
NIXPKGS_ROOT="$(git rev-parse --show-toplevel)"
cd "$NIXPKGS_ROOT"
nix-update pipewire
2021-10-25 14:45:52 +01:00
outputs=$(nix-build . -A pipewire)
2021-04-27 11:52:41 +01:00
for p in $outputs; do
2021-10-25 14:45:52 +01:00
conf_files=$(find "$p/nix-support/" -name '*.conf.json')
2021-04-27 11:52:41 +01:00
for c in $conf_files; do
file_name=$(basename "$c")
2021-10-25 14:45:52 +01:00
if [[ ! -e "nixos/modules/services/desktops/pipewire/daemon/$file_name" ]]; then
2021-04-27 11:52:41 +01:00
echo "New file $file_name found! Add it to the module config and passthru tests!"
fi
2021-10-25 14:45:52 +01:00
install -m 0644 "$c" "nixos/modules/services/desktops/pipewire/daemon/"
done
done