chromium: fixup plugins with multiple outputs

Chromium+flash seem to work fine now.
This commit is contained in:
Vladimír Čunát 2016-03-11 15:10:30 +01:00
parent c801cd1a04
commit 4c0125bc8f

View File

@ -45,6 +45,7 @@ let
phases = [ "unpackPhase" "patchPhase" "installPhase" "checkPhase" ];
outputs = [ "flash" "widevine" ];
out = "flash"; # outputs TODO: is this a hack?
unpackCmd = let
chan = if source.channel == "dev" then "chrome-unstable"
@ -64,7 +65,7 @@ let
'';
patchPhase = let
rpaths = [ stdenv.cc.cc ];
rpaths = [ stdenv.cc.cc.lib ];
mkrpath = p: "${makeSearchPath "lib64" p}:${makeSearchPath "lib" p}";
in ''
for sofile in PepperFlash/libpepflashplayer.so \