pipewire-media-session: 0.4.0 -> 0.4.1
This commit is contained in:
parent
c1a493bdcd
commit
3119604c2d
|
@ -20,14 +20,14 @@ let
|
|||
|
||||
self = stdenv.mkDerivation rec {
|
||||
pname = "pipewire-media-session";
|
||||
version = "0.4.0";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "pipewire";
|
||||
repo = "media-session";
|
||||
rev = version;
|
||||
sha256 = "sha256-zhOvBlG7DuQkJ+ZZBhBhfKwk+bbLljpt3w4JlK3cJLk=";
|
||||
sha256 = "sha256-e537gTkiNYMz2YJrOff/MXYWVDgHZDkqkSn8Qh+7Wr4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -67,6 +67,7 @@ let
|
|||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update-media-session.sh;
|
||||
tests = {
|
||||
test-paths = callPackage ./test-paths.nix { package = self; } {
|
||||
paths-out = [
|
||||
|
|
24
pkgs/development/libraries/pipewire/update-media-session.sh
Executable file
24
pkgs/development/libraries/pipewire/update-media-session.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/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-media-session
|
||||
outputs=$(nix-build . -A pipewire-media-session)
|
||||
for p in $outputs; do
|
||||
conf_files=$(find "$p/nix-support/" -name '*.conf.json')
|
||||
for c in $conf_files; do
|
||||
file_name=$(basename "$c")
|
||||
if [[ ! -e "nixos/modules/services/desktops/pipewire/media-session/$file_name" ]]; then
|
||||
echo "New file $file_name found! Add it to the module config and passthru tests!"
|
||||
fi
|
||||
install -m 0644 "$c" "nixos/modules/services/desktops/pipewire/media-session/"
|
||||
done
|
||||
done
|
Loading…
Reference in a new issue