Merge pull request #206572 from aacebedo/aacebedo/vivaldi_cmdline

This commit is contained in:
Sandro 2022-12-18 17:25:46 +01:00 committed by GitHub
commit d0377c94e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,6 @@
, isSnapshot ? false , isSnapshot ? false
, proprietaryCodecs ? false, vivaldi-ffmpeg-codecs ? null , proprietaryCodecs ? false, vivaldi-ffmpeg-codecs ? null
, enableWidevine ? false, vivaldi-widevine ? null , enableWidevine ? false, vivaldi-widevine ? null
, forceDarkMode ? false
, commandLineArgs ? "" , commandLineArgs ? ""
, pulseSupport ? stdenv.isLinux, libpulseaudio , pulseSupport ? stdenv.isLinux, libpulseaudio
}: }:
@ -80,7 +79,7 @@ in stdenv.mkDerivation rec {
substituteInPlace "$out"/share/applications/*.desktop \ substituteInPlace "$out"/share/applications/*.desktop \
--replace /usr/bin/${vivaldiName} "$out"/bin/vivaldi --replace /usr/bin/${vivaldiName} "$out"/bin/vivaldi
substituteInPlace "$out"/share/applications/*.desktop \ substituteInPlace "$out"/share/applications/*.desktop \
--replace vivaldi-stable "vivaldi ${lib.optionalString forceDarkMode "--force-dark-mode"}" --replace vivaldi-stable vivaldi
local d local d
for d in 16 22 24 32 48 64 128 256; do for d in 16 22 24 32 48 64 128 256; do
mkdir -p "$out"/share/icons/hicolor/''${d}x''${d}/apps mkdir -p "$out"/share/icons/hicolor/''${d}x''${d}/apps