Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: StabilityMatrix #336340

Open
jaxiiruff opened this issue Aug 21, 2024 · 3 comments
Open

Package request: StabilityMatrix #336340

jaxiiruff opened this issue Aug 21, 2024 · 3 comments
Labels
0.kind: packaging request Request for a new package to be added

Comments

@jaxiiruff
Copy link

Multi-Platform Package Manager for Stable Diffusion. There is an AUR package.

Source: https://github.com/LykosAI/StabilityMatrix
License: AGPL-3.0
Platforms: linux, windows, macos

@jaxiiruff jaxiiruff added the 0.kind: packaging request Request for a new package to be added label Aug 21, 2024
@nozpheratu
Copy link

For future visitors, I was also interested in this program, it seemed to work fairly well with a simple app image wrapper as per the wiki, but encounter some shared library errors during runtime with one of the crypt libraries, there was an easy solution for that I posted about here:

LykosAI/StabilityMatrix#554 (comment)

@RSWilli
Copy link

RSWilli commented Jan 3, 2025

I am also interested in StabilityMatrix and decided to try to package it. I got pretty far, but I'm unfamiliar with dotnet. I got the following, which currently fails with:

error: auto-patchelf could not satisfy dependency libc.musl-x86_64.so.1 wanted by /nix/store/sbqn3c4sbbmhxdx6ym0npljb8bd48zyq-SkiaSharp.NativeAssets.Linux-3.0.0-preview.4.1/share/nuget/packages/skiasharp.nativeassets.linux/3.0.0-preview.4.1/contentFiles/any/netstandard2.1/libSkiaSharp.so
{
  fetchFromGitHub,
  buildDotnetModule,
  lib,
  git,
  musl,
  libxcrypt-legacy,
  dotnetCorePackages,
}:
buildDotnetModule rec {
  pname = "StabilityMatrix";
  version = "2.13.0";

  src = fetchFromGitHub {
    owner = "LykosAI";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-GYp1Wg7jbF6FGi+MLemLXKx3otAH8E0zQriMp9fFUAI=";
    leaveDotGit = true; # the build needs the git dir for whatever reason
  };

  projectFile = "StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj";

  dotnet-sdk = with dotnetCorePackages;
    combinePackages [
      sdk_8_0
      sdk_9_0
    ];
  dotnet-runtime = dotnetCorePackages.runtime_9_0;

  nativeBuildInputs = [
    git
  ];

  nugetDeps = ./deps.json;
  runtimeDeps = [
    libxcrypt-legacy
  ];

  autoPatchelfIgnoreMissingDeps = [
    "libc.musl-x86_64.so.1" # this does not work
  ];

  meta = with lib; {
    homepage = "https://github.com/LykosAI/StabilityMatrix";
    description = "Multi-Platform Package Manager for Stable Diffusion";
    license = licenses.gpl3;
  };
}

Inspired by AUR https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=stabilitymatrix

The only issue similar to this is the following: #350147

@AlienJust you helped in the other issue, the @NixOS/dotnet mentioned in the docs that should be tagged for help does not exist. Can you help or do you know who to tag that can help?

@RSWilli
Copy link

RSWilli commented Jan 3, 2025

I tried using the AppImage, which runs with the linked nix-shell, but also throws some errors when launching the installed web UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added
Projects
None yet
Development

No branches or pull requests

3 participants