Last active
May 27, 2017 03:58
-
-
Save matejc/a2b09c01fea7a6521855a21f0ebc0e41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# not to be used | |
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.runCommand "vivaldi-with-flash" { | |
buildInputs = [ pkgs.makeWrapper ]; | |
} '' | |
mkdir -p $out/bin | |
makeWrapper ${pkgs.vivaldi}/bin/vivaldi $out/bin/vivaldi \ | |
--add-flags "--ppapi-flash-path=${pkgs.flashplayer}/lib/mozilla/plugins/libflashplayer.so" | |
'' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
let | |
upstream-info = (import <nixpkgs/pkgs/applications/networking/browsers/chromium/update.nix> { | |
}).getChannel "stable"; | |
plugins = pkgs.callPackage <nixpkgs/pkgs/applications/networking/browsers/chromium/plugins.nix> { | |
enablePepperFlash = true; | |
enableWideVine = false; | |
inherit upstream-info; | |
}; | |
in | |
pkgs.runCommand "vivaldi-with-flash" { | |
buildInputs = [ pkgs.makeWrapper ]; | |
} '' | |
mkdir -p $out/bin | |
makeWrapper ${pkgs.vivaldi}/bin/vivaldi $out/bin/vivaldi \ | |
--add-flags "--ppapi-flash-path=${builtins.elemAt plugins.enabled 0}/lib/libpepflashplayer.so" | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment