Files
nixpkgs/pkgs/vibetyper/default.nix
T

48 lines
1.7 KiB
Nix
Raw Normal View History

# last-modified: Fri, 24 Jul 2026 10:50:57 GMT
2026-04-03 10:58:03 +02:00
{
appimageTools,
fetchurl,
lib,
2026-06-20 10:56:01 +02:00
makeWrapper,
2026-04-03 10:58:03 +02:00
}: let
pname = "vibetyper";
2026-10-11 11:54:53 +02:00
version = "1.6.0";
# Upstream publishes to an unversioned URL — ./update.sh watches Last-Modified
# and refreshes the sha256 when the binary changes. Bump `version` manually.
2026-04-03 10:58:03 +02:00
src = fetchurl {
url = "https://cdn.vibetyper.com/releases/linux/VibeTyper.AppImage";
2026-10-11 11:54:53 +02:00
sha256 = "sha256-cpwm84imz0rxyQTPfmO6JdVmN2eqFur8oizEA4yv+xo=";
2026-04-03 10:58:03 +02:00
};
appimageContents = appimageTools.extract {inherit pname version src;};
2026-04-03 10:58:03 +02:00
in
appimageTools.wrapType2 {
inherit pname version src;
2026-06-20 10:56:01 +02:00
nativeBuildInputs = [makeWrapper];
2026-04-03 10:58:03 +02:00
extraPkgs = pkgs: [pkgs.fuse2];
extraInstallCommands = ''
# Upstream 1.6.0 renamed the desktop file to "Vibe Typer.desktop"
# (Exec=vibe-typer); install it under the old lowercase name and point
# Exec at the wrapper binary.
install -m 444 -D "${appimageContents}/usr/share/applications/Vibe Typer.desktop" \
$out/share/applications/vibe-typer.desktop
2026-04-03 11:23:56 +02:00
substituteInPlace $out/share/applications/vibe-typer.desktop \
--replace 'Exec=vibe-typer' 'Exec=${pname}'
install -m 444 -D "${appimageContents}/Vibe Typer.png" \
$out/share/icons/hicolor/256x256/apps/vibe-typer.png
2026-06-20 10:56:01 +02:00
wrapProgram $out/bin/${pname} \
--set VIBE_DISABLE_HYPRLAND_INDICATOR_NO_BLUR 1
2026-04-03 10:58:03 +02:00
'';
passthru.updateScript = ./update.sh;
2026-04-03 10:58:03 +02:00
meta = {
description = "VibeTyper - AI-powered typing assistant";
homepage = "https://vibetyper.com";
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
mainProgram = "vibetyper";
};
}