Merge pull request #318588 from 1sixth/fix-mpv-test

nixos/tests/mpv: adapt to the new mpv wrapper
This commit is contained in:
Mario Rodas 2024-06-09 21:49:59 -05:00 committed by GitHub
commit cfbeda848e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -12,7 +12,7 @@ in
{
environment.systemPackages = [
pkgs.curl
(pkgs.wrapMpv pkgs.mpv-unwrapped {
(pkgs.mpv.override {
scripts = [ pkgs.mpvScripts.simple-mpv-webui ];
})
];

View File

@ -50,6 +50,7 @@
meson,
mujs,
ninja,
nixosTests,
nv-codec-headers-11,
openalSoft,
pipewire,
@ -60,6 +61,7 @@
speex,
stdenv,
swift,
testers,
vapoursynth,
vulkan-headers,
vulkan-loader,
@ -351,6 +353,18 @@ stdenv'.mkDerivation (finalAttrs: {
wrapper = callPackage ./wrapper.nix { };
scripts = callPackage ./scripts { };
tests = {
inherit (nixosTests) mpv;
version = testers.testVersion {
package = finalAttrs.finalPackage;
};
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
moduleNames = [ "mpv" ];
};
};
};
meta = {