Skip to content

Commit

Permalink
materialious-desktop: init at 1.6.23
Browse files Browse the repository at this point in the history
  • Loading branch information
romner-set committed Dec 6, 2024
1 parent b11ff5d commit f262efd
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions pkgs/by-name/ma/materialious-desktop/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
lib,
stdenv,
appimageTools,
fetchurl,
makeDesktopItem,
nix-update-script,
}:
let
pname = "materialious-desktop";
version = "1.6.23";

icon = fetchurl {
url = "https://raw.githubusercontent.com/Materialious/Materialious/${version}/branding/Materialious.png";
sha256 = "sha256-VmuBAfhpNO3UdhdEQ7cZV/FI8jJgg4mNyLvIY3slIoY=";
};

desktopItem = makeDesktopItem {
inherit icon;
name = pname;
exec = pname;
desktopName = "Materialious";
genericName = "Invidious Frontend";
};

dist =
{
aarch64-linux = {
arch = "arm64";
sha256 = "sha256-1qwJWrRJLdKAKTSDq7m0OWgQ3I1/aBJJwi1rW3TxhQM=";
};

x86_64-linux = {
arch = "x86_64";
sha256 = "sha256-2a75l7/aVkyi0NXkyGYZiRTKGvzQ9evk7hC+JTBgPZk=";
};
}
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
in
appimageTools.wrapType2 {
inherit pname version;

src = fetchurl {
url = "https://github.com/Materialious/Materialious/releases/download/${version}/Materialious-${version}-linux-${dist.arch}.AppImage";
hash = dist.sha256;
};

extraInstallCommands = ''
mkdir "$out/share"
ln -s "${desktopItem}/share/applications" "$out/share/"
'';

passthru.updateScript = nix-update-script { };

meta = {
description = "Modern material design desktop app for Invidious";
homepage = "https://materialio.us";
license = [ lib.licenses.agpl3Plus ];
maintainers = with lib.maintainers; [ romner-set ];
mainProgram = "materialious-desktop";
platforms = [
"aarch64-linux"
"x86_64-linux"
];
};
}

0 comments on commit f262efd

Please sign in to comment.