diff options
| author | Fuwn <[email protected]> | 2024-08-28 22:35:07 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-08-28 22:35:07 -0700 |
| commit | 0687f98f5e8f293c19ee4de018a4389d355c55b8 (patch) | |
| tree | 85daad9a5373b6656c7f21c40b7d3277b8f3a0ec /pkgs/thorium.nix | |
| parent | hi (diff) | |
| download | nixos-config-0687f98f5e8f293c19ee4de018a4389d355c55b8.tar.xz nixos-config-0687f98f5e8f293c19ee4de018a4389d355c55b8.zip | |
hi
Diffstat (limited to 'pkgs/thorium.nix')
| -rw-r--r-- | pkgs/thorium.nix | 25 |
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"; + }; +} |