blob: 23ae48589644bfb10e9c9b099803cb9f1849f278 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{ pkgs, lib, ... }:
let
thorium-version = "126.0.6478.246";
thorium-release = "${thorium-version}_Th24_SSE4";
thorium-archive = pkgs.fetchurl {
url = "https://github.com/Alex313031/thorium/releases/download/M${thorium-version}/Thorium_Browser_${thorium-release}.AppImage";
hash = "sha256-izYbx/mSA+l7fAh917SauHopk3UlUJo+7NjkyIGpnNA=";
};
in
# https://discourse.nixos.org/t/creating-a-nix-derivation-for-an-appimage/31927
pkgs.appimageTools.wrapType2 {
pname = "thorium";
version = thorium-version;
src = "${thorium-archive}";
meta = with lib; {
description = "Chromium fork named after radioactive element No. 90. Windows and MacOS/Raspi/Android/Special builds are in different repositories, links are towards the top of the README.md.";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
homepage = "https://thorium.rocks/";
license = licenses.bsd3;
platforms = platforms.linux;
mainProgram = "thorium-browser";
};
}
|