46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
![]() |
{
|
|||
|
appimageTools,
|
|||
|
fetchurl,
|
|||
|
lib,
|
|||
|
nodejs,
|
|||
|
nodePackages,
|
|||
|
uv,
|
|||
|
python3,
|
|||
|
makeWrapper,
|
|||
|
}: let
|
|||
|
pname = "msty-studio";
|
|||
|
version = "2.0.0-beta.4";
|
|||
|
src = fetchurl {
|
|||
|
url = "https://next-assets.msty.studio/app/alpha/linux/MstyStudio_x86_64.AppImage";
|
|||
|
sha256 = "sha256-zJcGK7QEL3ROgVJy13mMdY/437H3Zx8EwSXy7rEhV9w=";
|
|||
|
};
|
|||
|
appimageContents = appimageTools.extractType2 {inherit pname version src;};
|
|||
|
in
|
|||
|
appimageTools.wrapType2 {
|
|||
|
inherit pname version src;
|
|||
|
nativeBuildInputs = [makeWrapper];
|
|||
|
|
|||
|
extraPkgs = pkgs: [
|
|||
|
nodejs
|
|||
|
nodePackages.npm
|
|||
|
uv
|
|||
|
python3
|
|||
|
];
|
|||
|
|
|||
|
extraInstallCommands = ''
|
|||
|
install -m 444 -D ${appimageContents}/MstyStudio.desktop -t $out/share/applications
|
|||
|
substituteInPlace $out/share/applications/MstyStudio.desktop \
|
|||
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|||
|
install -m 444 -D ${appimageContents}/MstyStudio.png \
|
|||
|
$out/share/icons/hicolor/256x256/apps/MstyStudio.png
|
|||
|
wrapProgram $out/bin/${pname} \
|
|||
|
--prefix PATH : ${nodejs}/bin:${nodePackages.npm}/bin:${uv}/bin:${python3}/bin
|
|||
|
'';
|
|||
|
meta = {
|
|||
|
description = "Msty Studio enables advanced, privacy‑preserving AI workflows entirely on your local machine.";
|
|||
|
license = lib.licenses.unfree;
|
|||
|
platforms = lib.platforms.linux;
|
|||
|
mainProgram = "msty-studio";
|
|||
|
};
|
|||
|
}
|