Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
xorg,
|
|
libGL,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "krillinai";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "krillinai";
|
|
repo = "KlicStudio";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-CMeF24BCJ+wbiXCl0iJm0acNoggVxeOu3Q/cXJY8aQo=";
|
|
};
|
|
|
|
vendorHash = "sha256-bAKLNpt0K06egScyn7ImHV0csDsMQGUm92kU1PVQK+I=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
|
xorg.libXinerama
|
|
xorg.libXxf86vm
|
|
xorg.libXcursor
|
|
xorg.libXrandr
|
|
xorg.libX11
|
|
xorg.libXi
|
|
libGL
|
|
];
|
|
|
|
# open g:\bin\AI\tasks\gdQRrtQP\srt_no_ts_1.srt: no such file or directory
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mv $out/bin/desktop $out/bin/krillinai-desktop
|
|
mv $out/bin/server $out/bin/krillinai-server
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Video translation and dubbing tool";
|
|
homepage = "https://github.com/krillinai/KlicStudio";
|
|
changelog = "https://github.com/krillinai/KlicStudio/releases/tag/v${finalAttrs.version}";
|
|
mainProgram = "krillinai-desktop";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = [ ];
|
|
};
|
|
})
|