Skip to content

Commit 0ccc0f9

Browse files
krillinai: init at 1.1.0 (NixOS#397203)
2 parents baab40c + 4efdaed commit 0ccc0f9

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
})

0 commit comments

Comments
 (0)