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:
parent
10c7c219b7
commit
373ead2060
1 changed files with 13 additions and 12 deletions
|
@ -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;
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue