mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
yandex-browser: 21.6.2.817-1 -> 22.1.3.856-1
This commit is contained in:
parent
63628eb0a4
commit
7516b203d7
@ -50,11 +50,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "yandex-browser";
|
||||
version = "21.6.2.817-1";
|
||||
version = "22.1.3.856-1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://repo.yandex.ru/yandex-browser/deb/pool/main/y/${pname}-beta/${pname}-beta_${version}_amd64.deb";
|
||||
sha256 = "sha256-xeZkQzVPPNABxa3/YBLoZl1obbFdzxdqIgLyoA4PN8U=";
|
||||
sha256 = "sha256-+xxyV8dBnfu2hQ/ykkp7wFSaojhlPLVvMmZdh/hyaoE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -109,21 +109,22 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
mkdir -p $TMP/ya $out/bin
|
||||
cp $src $TMP/ya.deb
|
||||
ar vx ya.deb
|
||||
mkdir $TMP/ya/ $out/bin/ -p
|
||||
ar vx $src
|
||||
tar --no-overwrite-dir -xvf data.tar.xz -C $TMP/ya/
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp -R $TMP/ya/opt $out/
|
||||
cp $TMP/ya/{usr/share,opt} $out/ -R
|
||||
substituteInPlace $out/share/applications/yandex-browser-beta.desktop --replace /usr/ $out/
|
||||
ln -sf $out/opt/yandex/browser-beta/yandex_browser $out/bin/yandex-browser
|
||||
'';
|
||||
|
||||
runtimeDependencies = [
|
||||
libpulseaudio.out
|
||||
(lib.getLib systemd)
|
||||
];
|
||||
runtimeDependencies = map lib.getLib [
|
||||
libpulseaudio
|
||||
curl
|
||||
systemd
|
||||
] ++ buildInputs;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Yandex Web Browser";
|
||||
@ -131,6 +132,5 @@ stdenv.mkDerivation rec {
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ dan4ik605743 ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user