2024-02-03 19:39:45 +01:00
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
2024-05-28 17:02:06 +02:00
|
|
|
(final: prev: {
|
|
|
|
mpvScript = prev.runCommandLocal "mpvScript" { scriptName = "something"; }
|
2024-02-03 19:39:45 +01:00
|
|
|
"mkdir $out";
|
|
|
|
|
2024-05-28 17:02:06 +02:00
|
|
|
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
|
2024-02-14 11:25:28 +01:00
|
|
|
mkdir -p $dev $doc $man $out/bin $out/Applications/mpv.app/Contents/MacOS
|
2024-02-03 19:39:45 +01:00
|
|
|
touch $out/bin/{mpv,umpv} \
|
|
|
|
$out/Applications/mpv.app/Contents/MacOS/{mpv,mpv-bundle}
|
|
|
|
chmod +x $out/bin/{mpv,umpv} \
|
|
|
|
$out/Applications/mpv.app/Contents/MacOS/{mpv,mpv-bundle}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
test.stubs = { yt-dlp = { }; };
|
|
|
|
}
|