Files
nixpkgs/pkgs/vibetyper/default.nix
T
m3ta-chiron 3dbd16339a fix(vibetyper): adapt install to upstream 1.6.0 AppImage layout
Upstream renamed the desktop file to "Vibe Typer.desktop" (also under
usr/share/applications), changed Exec to "vibe-typer", and replaced the
top-level 512x512 icon with a 256x256 one. Install the renamed files,
keep the lowercase vibe-typer.desktop name for compatibility, and
rewrite Exec to the wrapper binary.
2026-10-11 14:35:09 +02:00

49 lines
1.7 KiB
Nix

# last-modified: Fri, 24 Jul 2026 10:50:57 GMT
{
appimageTools,
fetchurl,
lib,
makeWrapper,
}: let
pname = "vibetyper";
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.
src = fetchurl {
url = "https://cdn.vibetyper.com/releases/linux/VibeTyper.AppImage";
sha256 = "sha256-cpwm84imz0rxyQTPfmO6JdVmN2eqFur8oizEA4yv+xo=";
};
appimageContents = appimageTools.extract {inherit pname version src;};
in
appimageTools.wrapType2 {
inherit pname version src;
nativeBuildInputs = [makeWrapper];
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
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
wrapProgram $out/bin/${pname} \
--set VIBE_DISABLE_HYPRLAND_INDICATOR_NO_BLUR 1
'';
passthru.updateScript = ./update.sh;
meta = {
description = "VibeTyper - AI-powered typing assistant";
homepage = "https://vibetyper.com";
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
mainProgram = "vibetyper";
};
}