1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-15 07:39:46 +01:00
home-manager/tests/modules/programs/mpv/mpv-stubs.nix

29 lines
827 B
Nix
Raw Normal View History

2024-02-03 19:39:45 +01:00
{ pkgs, ... }:
{
nixpkgs.overlays = [
(self: super: {
mpvScript = pkgs.runCommandLocal "mpvScript" { scriptName = "something"; }
"mkdir $out";
mpv-unwrapped = super.mpv-unwrapped.overrideAttrs {
builder = pkgs.writeShellScript "dummy" ''
PATH=${pkgs.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}
'';
};
lua = pkgs.emptyDirectory.overrideAttrs {
luaversion = "0";
withPackages = ps: pkgs.emptyDirectory;
};
})
];
test.stubs = { yt-dlp = { }; };
}