1
0
Fork 0

update to 1.0.0-a.30, update lock, add runtimeLibs to fix audio, package name includes version (#14)

This commit is contained in:
Ardian Eka Candra 2024-08-27 14:50:35 +07:00 committed by GitHub
parent dc0a13e833
commit 7230392715
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 10 deletions

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1724224976, "lastModified": 1724479785,
"narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", "narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", "rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -8,15 +8,15 @@
outputs = { self, nixpkgs }: outputs = { self, nixpkgs }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
version = "1.0.0-a.28"; version = "1.0.0-a.30";
downloadUrl = { downloadUrl = {
"specific" = { "specific" = {
url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-specific.tar.bz2"; url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-specific.tar.bz2";
sha256 = "sha256:1vq7k3qwfdx70frng5p308zwnih86bwz75zpzcb1lbf3xsliz702"; sha256 = "sha256:07y6h2xwqja9a9k0w9iqnd9hy06w6n320maaii7cqh6khx259cqm";
}; };
"generic" = { "generic" = {
url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-generic.tar.bz2"; 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; [ runtimeLibs = with pkgs; [
libGL stdenv.cc.cc fontconfig libxkbcommon zlib freetype libGL libGLU libevent libffi libjpeg libpng libstartup_notification libvpx libwebp
gtk3 libxml2 dbus xcb-util-cursor alsa-lib pango atk cairo gdk-pixbuf glib 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 udev libva mesa libnotify cups pciutils
ffmpeg libglvnd pipewire ffmpeg libglvnd pipewire
] ++ (with pkgs.xorg; [ ] ++ (with pkgs.xorg; [
@ -39,7 +40,8 @@
downloadData = downloadUrl."${variant}"; downloadData = downloadUrl."${variant}";
in in
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "zen-browser"; inherit version;
pname = "zen-browser";
src = builtins.fetchTarball { src = builtins.fetchTarball {
url = downloadData.url; url = downloadData.url;
@ -54,7 +56,7 @@
installPhase = '' installPhase = ''
mkdir -p $out/bin && cp -r $src/* $out/bin 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 install -D $src/browser/chrome/icons/default/default128.png $out/share/icons/hicolor/128x128/apps/zen.png
''; '';