krillinai: init at 1.1.0 (#397203)

authored by

Arne Keller and committed by
GitHub
0ccc0f98 baab40ce

+55
+55
pkgs/by-name/kr/krillinai/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + buildGoModule, 5 + fetchFromGitHub, 6 + pkg-config, 7 + xorg, 8 + libGL, 9 + nix-update-script, 10 + }: 11 + 12 + buildGoModule (finalAttrs: { 13 + pname = "krillinai"; 14 + version = "1.1.0"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "krillinai"; 18 + repo = "KrillinAI"; 19 + tag = "v${finalAttrs.version}"; 20 + hash = "sha256-AAlefejME+XLERcDJDeVgzySVX+KGrCMt7PJyWaxnoM="; 21 + }; 22 + 23 + vendorHash = "sha256-mpvypCZmvVVljftGpcV1aea3s7Xmhr0jLfKZIZ0nkX8="; 24 + 25 + nativeBuildInputs = [ pkg-config ]; 26 + 27 + buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ 28 + xorg.libXinerama 29 + xorg.libXxf86vm 30 + xorg.libXcursor 31 + xorg.libXrandr 32 + xorg.libX11 33 + xorg.libXi 34 + libGL 35 + ]; 36 + 37 + # open g:\bin\AI\tasks\gdQRrtQP\srt_no_ts_1.srt: no such file or directory 38 + doCheck = false; 39 + 40 + postInstall = '' 41 + mv $out/bin/desktop $out/bin/krillinai-desktop 42 + mv $out/bin/server $out/bin/krillinai-server 43 + ''; 44 + 45 + passthru.updateScript = nix-update-script { }; 46 + 47 + meta = { 48 + description = "Video translation and dubbing tool"; 49 + homepage = "https://github.com/krillinai/KrillinAI"; 50 + changelog = "https://github.com/krillinai/KrillinAI/releases/tag/v${finalAttrs.version}"; 51 + mainProgram = "krillinai-desktop"; 52 + license = lib.licenses.gpl3Plus; 53 + maintainers = with lib.maintainers; [ emaryn ]; 54 + }; 55 + })