Files
nixpkgs/pkgs/vibetyper/default.nix
T

45 lines
1.4 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";
version = "1.4.1";
# 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";
sha256 = "sha256-mhXWEKvDgzxJrqIjzUWpfPM8qwKf6YYLsbjqqjtEk5s=";
2026-04-03 10:58:03 +02:00
};
appimageContents = appimageTools.extractType2 {inherit pname version src;};
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 = ''
2026-04-03 11:23:56 +02:00
install -m 444 -D ${appimageContents}/vibe-typer.desktop -t $out/share/applications
substituteInPlace $out/share/applications/vibe-typer.desktop \
--replace 'Exec=AppRun --no-sandbox' 'Exec=${pname}'
install -m 444 -D ${appimageContents}/vibe-typer.png \
$out/share/icons/hicolor/512x512/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";
};
}