···390390 diskImage=$(pwd)/disk-image.qcow2
391391 origImage=${attrs.diskImage}
392392 if test -d "$origImage"; then origImage="$origImage/disk-image.qcow2"; fi
393393- ${qemu}/bin/qemu-img create -b "$origImage" -f qcow2 $diskImage
393393+ ${qemu}/bin/qemu-img create -F ${attrs.diskImageFormat} -b "$origImage" -f qcow2 $diskImage
394394 '';
395395396396 /* Inside the VM, run the stdenv setup script normally, but at the
···11+#!/usr/bin/env nix-shell
22+#!nix-shell -p nix-update -i bash
33+# shellcheck shell=bash
44+55+set -o errexit -o pipefail -o nounset -o errtrace
66+shopt -s inherit_errexit
77+shopt -s nullglob
88+IFS=$'\n'
99+1010+NIXPKGS_ROOT="$(git rev-parse --show-toplevel)"
1111+1212+cd "$NIXPKGS_ROOT"
1313+nix-update pipewire
1414+outputs=$(nix-build . -A pipewire)
1515+for p in $outputs; do
1616+ conf_files=$(find "$p/nix-support/" -name '*.conf.json')
1717+ for c in $conf_files; do
1818+ file_name=$(basename "$c")
1919+ if [[ ! -e "nixos/modules/services/desktops/pipewire/daemon/$file_name" ]]; then
2020+ echo "New file $file_name found! Add it to the module config and passthru tests!"
2121+ fi
2222+ install -m 0644 "$c" "nixos/modules/services/desktops/pipewire/daemon/"
2323+ done
2424+done
2525+
-37
pkgs/development/libraries/pipewire/update.sh
···11-#!/usr/bin/env nix-shell
22-#!nix-shell -p nix-update -i bash
33-# shellcheck shell=bash
44-55-set -o errexit -o pipefail -o nounset -o errtrace
66-shopt -s inherit_errexit
77-shopt -s nullglob
88-IFS=$'\n'
99-1010-NIXPKGS_ROOT="$(git rev-parse --show-toplevel)"
1111-1212-cd "$NIXPKGS_ROOT"
1313-nix-update pipewire
1414-outputs=$(nix-build . -A pipewire)
1515-for p in $outputs; do
1616- conf_files=$(find "$p/nix-support/" -name '*.conf.json')
1717- for c in $conf_files; do
1818- file_name=$(basename "$c")
1919- if [[ ! -e "nixos/modules/services/desktops/pipewire/daemon/$file_name" ]]; then
2020- echo "New file $file_name found! Add it to the module config and passthru tests!"
2121- fi
2222- install -m 0644 "$c" "nixos/modules/services/desktops/pipewire/daemon/"
2323- done
2424-done
2525-2626-nix-update pipewire-media-session
2727-outputs=$(nix-build . -A pipewire-media-session)
2828-for p in $outputs; do
2929- conf_files=$(find "$p/nix-support/" -name '*.conf.json')
3030- for c in $conf_files; do
3131- file_name=$(basename "$c")
3232- if [[ ! -e "nixos/modules/services/desktops/pipewire/media-session/$file_name" ]]; then
3333- echo "New file $file_name found! Add it to the module config and passthru tests!"
3434- fi
3535- install -m 0644 "$c" "nixos/modules/services/desktops/pipewire/media-session/"
3636- done
3737-done