Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ system ? builtins.currentSystem, pkgs ? import ../.. { inherit system; config = { }; },}:
let inherit (pkgs.lib) concatMapStrings listToAttrs optionals optionalString ; inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
hello32 = "${pkgs.pkgsCross.mingw32.hello}/bin/hello.exe"; hello64 = "${pkgs.pkgsCross.mingwW64.hello}/bin/hello.exe";
makeWineTest = packageSet: exes: variant: rec { name = "${packageSet}-${variant}"; value = makeTest { inherit name; meta = with pkgs.lib.maintainers; { maintainers = [ chkno ]; };
nodes.machine = { pkgs, ... }: { environment.systemPackages = [ pkgs."${packageSet}"."${variant}" ]; virtualisation.diskSize = 800; };
testScript = '' machine.wait_for_unit("multi-user.target") ${concatMapStrings ( exe: '' greeting = machine.succeed( "bash -c 'wine ${exe} 2> >(tee wine-stderr >&2)'" ) assert 'Hello, world!' in greeting '' # only the full version contains Gecko, but the error is not printed reliably in other variants + optionalString (variant == "full") '' machine.fail( "fgrep 'Could not find Wine Gecko. HTML rendering will be disabled.' wine-stderr" ) '' ) exes} ''; }; };
variants = [ "base" "full" "minimal" "staging" "unstable" "wayland" ];
inlistToAttrs ( map (makeWineTest "winePackages" [ hello32 ]) variants ++ optionals pkgs.stdenv.hostPlatform.is64bit ( map (makeWineTest "wineWowPackages" [ hello32 hello64 ]) # This wayland combination times out after spending many hours. # https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.wine.wineWowPackages-wayland.x86_64-linux (pkgs.lib.remove "wayland" variants) ++ map (makeWineTest "wineWow64Packages" [ hello32 hello64 ]) # This wayland combination times out after spending many hours. # https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.wine.wineWowPackages-wayland.x86_64-linux (pkgs.lib.remove "wayland" variants) ))