test
This commit is contained in:
@@ -1,44 +1,45 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchzip
|
||||
, autoPatchelfHook
|
||||
, makeWrapper
|
||||
# Core dependencies
|
||||
, alsa-lib
|
||||
, at-spi2-core
|
||||
, cairo
|
||||
, cups
|
||||
, dbus
|
||||
, expat
|
||||
, fontconfig
|
||||
, freetype
|
||||
, gdk-pixbuf
|
||||
, glib
|
||||
, gtk3
|
||||
, libarchive
|
||||
, libdrm
|
||||
, libGL
|
||||
, libx11
|
||||
, libxcb
|
||||
, libxext
|
||||
, libxkbcommon
|
||||
, mesa
|
||||
, nspr
|
||||
, nss
|
||||
, pango
|
||||
, systemd
|
||||
, xorg
|
||||
, zlib
|
||||
# Additional CEF/Chromium dependencies
|
||||
, libnotify
|
||||
, libpulseaudio
|
||||
, libuuid
|
||||
, libva
|
||||
, pipewire
|
||||
, udev
|
||||
, wayland
|
||||
, jdk17 # for RuneLite/HDOS
|
||||
, gtk2 ? null # for RS3
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchzip,
|
||||
autoPatchelfHook,
|
||||
makeWrapper,
|
||||
# Core dependencies
|
||||
alsa-lib,
|
||||
at-spi2-core,
|
||||
cairo,
|
||||
cups,
|
||||
dbus,
|
||||
expat,
|
||||
fontconfig,
|
||||
freetype,
|
||||
gdk-pixbuf,
|
||||
glib,
|
||||
gtk3,
|
||||
libarchive,
|
||||
libdrm,
|
||||
libGL,
|
||||
libx11,
|
||||
libxcb,
|
||||
libxext,
|
||||
libxkbcommon,
|
||||
mesa,
|
||||
nspr,
|
||||
nss,
|
||||
pango,
|
||||
systemd,
|
||||
xorg,
|
||||
zlib,
|
||||
# Additional CEF/Chromium dependencies
|
||||
libnotify,
|
||||
libpulseaudio,
|
||||
libuuid,
|
||||
libva,
|
||||
pipewire,
|
||||
udev,
|
||||
wayland,
|
||||
jdk17 # for RuneLite/HDOS
|
||||
, # for RS3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -79,7 +80,7 @@ stdenv.mkDerivation rec {
|
||||
nspr
|
||||
nss
|
||||
pango
|
||||
stdenv.cc.cc.lib # for libstdc++.so.6
|
||||
stdenv.cc.cc.lib # for libstdc++.so.6
|
||||
systemd
|
||||
zlib
|
||||
# Additional CEF/Chromium deps
|
||||
@@ -90,7 +91,8 @@ stdenv.mkDerivation rec {
|
||||
pipewire
|
||||
udev
|
||||
wayland
|
||||
] ++ (with xorg; [
|
||||
]
|
||||
++ (with xorg; [
|
||||
libXcomposite
|
||||
libXcursor
|
||||
libXdamage
|
||||
@@ -119,10 +121,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Copy all files to lib directory
|
||||
cp -r ./bolt-launcher/* $out/lib/bolt-launcher/
|
||||
|
||||
|
||||
# The main executable is 'bolt' (lowercase)
|
||||
chmod +x $out/lib/bolt-launcher/bolt
|
||||
|
||||
|
||||
# Also make chrome-sandbox executable (needed for CEF)
|
||||
if [ -f $out/lib/bolt-launcher/chrome-sandbox ]; then
|
||||
chmod +x $out/lib/bolt-launcher/chrome-sandbox
|
||||
@@ -155,7 +157,7 @@ stdenv.mkDerivation rec {
|
||||
# Make sure they can find each other
|
||||
patchelf --set-rpath "$out/lib/bolt-launcher:${lib.makeLibraryPath buildInputs}" \
|
||||
$out/lib/bolt-launcher/bolt || true
|
||||
|
||||
|
||||
# Patch the CEF libraries
|
||||
for lib in $out/lib/bolt-launcher/*.so*; do
|
||||
if [ -f "$lib" ]; then
|
||||
@@ -168,8 +170,11 @@ stdenv.mkDerivation rec {
|
||||
description = "Free open-source third-party implementation of the Jagex Launcher";
|
||||
homepage = "https://bolt.adamcake.com/";
|
||||
license = licenses.agpl3Only;
|
||||
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
||||
platforms = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
maintainers = with maintainers; [ ];
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user