summaryrefslogtreecommitdiff
path: root/pkgs/thorium.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-28 22:35:07 -0700
committerFuwn <[email protected]>2024-08-28 22:35:07 -0700
commit0687f98f5e8f293c19ee4de018a4389d355c55b8 (patch)
tree85daad9a5373b6656c7f21c40b7d3277b8f3a0ec /pkgs/thorium.nix
parenthi (diff)
downloadnixos-config-0687f98f5e8f293c19ee4de018a4389d355c55b8.tar.xz
nixos-config-0687f98f5e8f293c19ee4de018a4389d355c55b8.zip
hi
Diffstat (limited to 'pkgs/thorium.nix')
-rw-r--r--pkgs/thorium.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/thorium.nix b/pkgs/thorium.nix
new file mode 100644
index 0000000..23ae485
--- /dev/null
+++ b/pkgs/thorium.nix
@@ -0,0 +1,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";
+ };
+}