Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
appimageTools,
|
|
fetchurl,
|
|
makeDesktopItem,
|
|
}:
|
|
|
|
let
|
|
pname = "hamsket";
|
|
version = "0.6.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/TheGoddessInari/hamsket/releases/download/nightly/Hamsket-${version}.AppImage";
|
|
sha256 = "sha256-r85ZwcalBd/nCIBxOaQk7XClxj7VZtxwky4eWWm2tZ8=";
|
|
};
|
|
|
|
desktopItem = (
|
|
makeDesktopItem {
|
|
desktopName = "Hamsket";
|
|
name = pname;
|
|
exec = pname;
|
|
icon = pname;
|
|
categories = [ "Network" ];
|
|
}
|
|
);
|
|
|
|
appimageContents = appimageTools.extract {
|
|
inherit pname version src;
|
|
};
|
|
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
mkdir -p $out/share/applications $out/share/icons/hicolor/256x256/apps
|
|
install -Dm644 ${appimageContents}/usr/share/icons/hicolor/256x256/apps/hamsket*.png $out/share/icons/hicolor/256x256/apps/${pname}.png
|
|
install -Dm644 ${desktopItem}/share/applications/* $out/share/applications
|
|
'';
|
|
|
|
meta = {
|
|
description = "Free and open source messaging and emailing app that combines common web applications into one";
|
|
homepage = "https://github.com/TheGoddessInari/hamsket";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ nova-madeline ];
|
|
platforms = [ "x86_64-linux" ];
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|