vivaldi: 1.3 -> 1.4 (#18886)

This commit is contained in:
José Romildo Malaquias 2016-09-23 19:27:36 -03:00 committed by Franz Pletz
parent 25828b546f
commit 40c4e80935
1 changed files with 16 additions and 4 deletions

View File

@ -10,17 +10,18 @@
}:
let
version = "1.3";
build = "551.30-1";
version = "1.4";
build = "589.29-1";
fullVersion = "stable_${version}.${build}";
info = if stdenv.is64bit then {
arch = "amd64";
sha256 = "89d0630c9df56cfb12a87f23430179f6d14a8c57fb029d1c8d28ab06c98b7640";
sha256 = "14sb58qrqnqcpkzacwnwfln558p018zargppxq21p5ic8s92v1g6";
} else {
arch = "i386";
sha256 = "0a7e07833f5359e38516222767da63edeca92177cbb6d4ef4946a6ef7c7b2946";
sha256 = "0c4l9ji5xlxwzcjsrvxjkx53j76y777fj6hh7plfkkanlrfkryac";
};
in stdenv.mkDerivation rec {
product = "vivaldi";
name = "${product}-${version}";
@ -65,6 +66,17 @@ in stdenv.mkDerivation rec {
cp -r opt "$out"
mkdir "$out/bin"
ln -s "$out/opt/vivaldi/vivaldi" "$out/bin/vivaldi"
mkdir -p "$out/share"
cp -r usr/share/{applications,xfce4} "$out"/share
substituteInPlace "$out"/share/applications/*.desktop \
--replace /usr/bin/vivaldi-stable "$out"/bin/vivaldi
local d
for d in 16 22 24 32 48 64 128 256; do
mkdir -p "$out"/share/icons/hicolor/''${d}x''${d}/apps
ln -s \
"$out"/opt/vivaldi/product_logo_''${d}.png \
"$out"/share/icons/hicolor/''${d}x''${d}/apps/vivaldi.png
done
'';
meta = with stdenv.lib; {