From 723039271547eb4c648e5bd774e2f7bc73564b16 Mon Sep 17 00:00:00 2001 From: Ardian Eka Candra <65037854+eekrain@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:50:35 +0700 Subject: [PATCH] update to 1.0.0-a.30, update lock, add runtimeLibs to fix audio, package name includes version (#14) --- flake.lock | 6 +++--- flake.nix | 16 +++++++++------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index af6aa81..48828c7 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1724224976, - "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", + "lastModified": 1724479785, + "narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", + "rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index e3427d6..9a2539f 100644 --- a/flake.nix +++ b/flake.nix @@ -8,15 +8,15 @@ outputs = { self, nixpkgs }: let system = "x86_64-linux"; - version = "1.0.0-a.28"; + version = "1.0.0-a.30"; downloadUrl = { "specific" = { url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-specific.tar.bz2"; - sha256 = "sha256:1vq7k3qwfdx70frng5p308zwnih86bwz75zpzcb1lbf3xsliz702"; + sha256 = "sha256:07y6h2xwqja9a9k0w9iqnd9hy06w6n320maaii7cqh6khx259cqm"; }; "generic" = { url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-generic.tar.bz2"; - sha256 = "sha256:154q0yl7s8v87dcpig8ixl607iqn1iv8mrlb82cldb1xn5gvlw5x"; + sha256 = "sha256:1nlaphylrrbsd2rmn1h5ml9wmxwshys04svpf5v8fv8ndihjyfj8"; }; }; @@ -25,8 +25,9 @@ }; runtimeLibs = with pkgs; [ - libGL stdenv.cc.cc fontconfig libxkbcommon zlib freetype - gtk3 libxml2 dbus xcb-util-cursor alsa-lib pango atk cairo gdk-pixbuf glib + libGL libGLU libevent libffi libjpeg libpng libstartup_notification libvpx libwebp + stdenv.cc.cc fontconfig libxkbcommon zlib freetype + gtk3 libxml2 dbus xcb-util-cursor alsa-lib libpulseaudio pango atk cairo gdk-pixbuf glib udev libva mesa libnotify cups pciutils ffmpeg libglvnd pipewire ] ++ (with pkgs.xorg; [ @@ -39,7 +40,8 @@ downloadData = downloadUrl."${variant}"; in pkgs.stdenv.mkDerivation { - name = "zen-browser"; + inherit version; + pname = "zen-browser"; src = builtins.fetchTarball { url = downloadData.url; @@ -54,7 +56,7 @@ installPhase = '' mkdir -p $out/bin && cp -r $src/* $out/bin - install -D $desktopSrc/zen.desktop $out/share/applications/dev.zen.Zen.desktop + install -D $desktopSrc/zen.desktop $out/share/applications/zen.desktop install -D $src/browser/chrome/icons/default/default128.png $out/share/icons/hicolor/128x128/apps/zen.png '';