Jump to content

Bolt-launcher: Difference between revisions

From Official NixOS Wiki
Use channel tarballs instead of github flakerefs
Iedame (talk | contribs)
quick example with extraPkgs, reflecting latest PR changes
 
Line 1: Line 1:
== Note for RS3 users ==  
== Note for RS3 users ==
Because RuneScape still depends on EOL OpenSSL 1.1, running it on the latest NixOS currently requires a workaround.  
The RuneScape 3 client needs OpenSSL 1.1 and GTK 2. Both are end of life and no longer in current Nixpkgs, and OpenSSL 1.1 no longer receives security fixes. Only enable this if you play RS3.


More info [https://github.com/NixOS/nixpkgs/pull/531289 here]
More info [https://github.com/NixOS/nixpkgs/pull/531289 here] and [https://github.com/NixOS/nixpkgs/pull/581786 here].
 
=== NixOS 26.05 ===
On nixos-26.05, the <code>enableRS3</code> option still works:
 
{{file|configuration.nix|nix|3=
{ pkgs, ... }:
 
{
  nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
 
  environment.systemPackages = [
    (pkgs.bolt-launcher.override { enableRS3 = true; })
  ];
}
}}
 
=== nixos-unstable and NixOS 26.11 or later ===
<code>enableRS3</code> has been removed. Instead, take only the two end-of-life libraries from nixos-26.05 and add them with <code>extraPkgs</code>. Bolt itself stays up to date with your system.


Snippets with flakes:
{{file|flake.nix|nix|3=
{{file|flake.nix|nix|3=
{
{
   inputs.nixpkgs-bolt-launcher.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
   inputs.nixpkgs-2605.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
   inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"; # or the latest stable, currently nixos-26.05
   inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";


   outputs =
   outputs =
     { nixpkgs-bolt-launcher, nixpkgs, ... }@inputs:
     { nixpkgs, ... }@inputs:
     {
     {
       nixosConfigurations.yourSystem = nixpkgs.lib.nixosSystem {
       nixosConfigurations.yourSystem = nixpkgs.lib.nixosSystem {
Line 27: Line 44:
{ inputs, pkgs, ... }:
{ inputs, pkgs, ... }:


let
  pkgs2605 = import inputs.nixpkgs-2605 {
    inherit (pkgs.stdenv.hostPlatform) system;
    config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
  };
in
{
{
   nixpkgs.overlays = [
   environment.systemPackages = [
     (final: prev: {
     (pkgs.bolt-launcher.override {
      bolt-launcher =
      extraPkgs = _: [
        let
        pkgs2605.openssl_1_1
          pkgs-bolt-launcher = import inputs.nixpkgs-bolt-launcher {
         pkgs2605.gtk2-x11
            inherit (pkgs.stdenv.hostPlatform) system;
      ];
            config.permittedInsecurePackages = [
              "openssl-1.1.1w"
            ];
          };
        in
         pkgs-bolt-launcher.bolt-launcher;
     })
     })
  ];
  environment.systemPackages = with pkgs; [
    (bolt-launcher.override { enableRS3 = true; })
   ];
   ];
}
}
}}
}}

Latest revision as of 14:32, 14 November 2026

Note for RS3 users

The RuneScape 3 client needs OpenSSL 1.1 and GTK 2. Both are end of life and no longer in current Nixpkgs, and OpenSSL 1.1 no longer receives security fixes. Only enable this if you play RS3.

More info here and here.

NixOS 26.05

On nixos-26.05, the enableRS3 option still works:

❄︎ configuration.nix
{ pkgs, ... }:

{
  nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];

  environment.systemPackages = [
    (pkgs.bolt-launcher.override { enableRS3 = true; })
  ];
}

nixos-unstable and NixOS 26.11 or later

enableRS3 has been removed. Instead, take only the two end-of-life libraries from nixos-26.05 and add them with extraPkgs. Bolt itself stays up to date with your system.

❄︎ flake.nix
{
  inputs.nixpkgs-2605.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
  inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";

  outputs =
    { nixpkgs, ... }@inputs:
    {
      nixosConfigurations.yourSystem = nixpkgs.lib.nixosSystem {
        modules = [
          ./configuration.nix
          ./hardware-configuration.nix
        ];
        specialArgs = { inherit inputs; };
      };
    };
}
❄︎ configuration.nix
{ inputs, pkgs, ... }:

let
  pkgs2605 = import inputs.nixpkgs-2605 {
    inherit (pkgs.stdenv.hostPlatform) system;
    config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
  };
in
{
  environment.systemPackages = [
    (pkgs.bolt-launcher.override {
      extraPkgs = _: [
        pkgs2605.openssl_1_1
        pkgs2605.gtk2-x11
      ];
    })
  ];
}