From 0687f98f5e8f293c19ee4de018a4389d355c55b8 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 28 Aug 2024 22:35:07 -0700 Subject: hi --- pkgs/thorium.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/thorium.nix (limited to 'pkgs/thorium.nix') 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"; + }; +} -- cgit v1.2.3