1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

tests: fix broken overlay in mpv test

This commit is contained in:
midchildan 2024-05-29 00:02:06 +09:00 committed by GitHub
parent 10c7c219b7
commit 373ead2060
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,14 +1,20 @@
{ pkgs, ... }:
{
nixpkgs.overlays = [
(self: super: {
mpvScript = pkgs.runCommandLocal "mpvScript" { scriptName = "something"; }
(final: prev: {
mpvScript = prev.runCommandLocal "mpvScript" { scriptName = "something"; }
"mkdir $out";
mpv-unwrapped = super.mpv-unwrapped.overrideAttrs {
builder = pkgs.writeShellScript "dummy" ''
PATH=${pkgs.coreutils}/bin
mpv-unwrapped = let
lua = prev.emptyDirectory.overrideAttrs {
luaversion = "0";
passthru.withPackages = pkgsFn: prev.emptyDirectory;
};
mpv-unwrapped' = prev.mpv-unwrapped.override { inherit lua; };
in mpv-unwrapped'.overrideAttrs {
buildInputs = [ ];
nativeBuildInputs = [ ];
builder = prev.writeShellScript "dummy" ''
PATH=${final.coreutils}/bin
mkdir -p $dev $doc $man $out/bin $out/Applications/mpv.app/Contents/MacOS
touch $out/bin/{mpv,umpv} \
$out/Applications/mpv.app/Contents/MacOS/{mpv,mpv-bundle}
@ -16,11 +22,6 @@
$out/Applications/mpv.app/Contents/MacOS/{mpv,mpv-bundle}
'';
};
lua = pkgs.emptyDirectory.overrideAttrs {
luaversion = "0";
withPackages = ps: pkgs.emptyDirectory;
};
})
];