Skip to content

Commit

Permalink
Merge pull request NixOS#318588 from 1sixth/fix-mpv-test
Browse files Browse the repository at this point in the history
nixos/tests/mpv: adapt to the new mpv wrapper
  • Loading branch information
marsam authored Jun 10, 2024
2 parents cd7ec24 + 54072d5 commit cfbeda8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/tests/mpv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ in
{
environment.systemPackages = [
pkgs.curl
(pkgs.wrapMpv pkgs.mpv-unwrapped {
(pkgs.mpv.override {
scripts = [ pkgs.mpvScripts.simple-mpv-webui ];
})
];
Expand Down
14 changes: 14 additions & 0 deletions pkgs/applications/video/mpv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
meson,
mujs,
ninja,
nixosTests,
nv-codec-headers-11,
openalSoft,
pipewire,
Expand All @@ -60,6 +61,7 @@
speex,
stdenv,
swift,
testers,
vapoursynth,
vulkan-headers,
vulkan-loader,
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit cfbeda8

Please sign in to comment.