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: lrcget #312996

Open
Titaniumtown opened this issue May 19, 2024 · 4 comments
Open

Package request: lrcget #312996

Titaniumtown opened this issue May 19, 2024 · 4 comments

Comments

@Titaniumtown
Copy link

Project description

Utility for mass-downloading LRC synced lyrics for your offline music library.

LRCGET will scan every files in your chosen directory for music files, then and try to download lyrics to a LRC files having the same name and save them to the same directory as your music files.

Metadata


Add a 👍 reaction to issues you find important.

@Celibistrial
Copy link

Celibistrial commented May 29, 2024

I tried packaging it , the following works (its gets installed properly) but when you run it it gets the error "failled to create framebuffer" or something along those lines. I think im missing some library

{
  stdenv,
  lib,
  dpkg,
  fetchurl,
  autoPatchelfHook,
  glib-networking,
  openssl,
  webkitgtk,
  wrapGAppsHook,
  libsoundio,
  x11Support ? true,
  libX11,
}:
stdenv.mkDerivation rec {
  name = "lrcget";
  version = "0.3.2";

  src = fetchurl {
    url = "https://github.com/tranxuanthang/lrcget/releases/download/0.3.2/lrcget_0.3.2_ubuntu_22.04_amd64.deb";
    sha256 = "sha256-+3ryA8mcK/F34wGVUKcx9QirfaV5/Px7rt3yekAA8N0=";
  };
  postFixup = lib.optionalString ((!stdenv.isDarwin) && x11Support) ''
    # libX11.so is loaded dynamically so autopatch doesn't detect it
    patchelf \
      --add-needed ${libX11}/lib/libX11.so \
      $out/bin/lrcget
  '';
  nativeBuildInputs = [
    autoPatchelfHook
    dpkg
  ];

  buildInputs = [
    glib-networking
    openssl
    libsoundio
    webkitgtk
    wrapGAppsHook
  ];

  unpackCmd = "dpkg-deb -x $curSrc source";

  installPhase = "mv usr $out";
}

EDIT:
this is the error i get

❯ lrcget

** (lrcget:18182): WARNING **: 17:25:29.717: webkit_settings_set_enable_offline_web_application_cache is deprecated and does nothing.
Could not determine the accessibility bus address
Database file path: /home/gaurav/.local/share/net.lrclib.lrcget/db.sqlite3
Existing database version: 3
AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer
AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer
AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer
AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer
AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer
AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer

@Titaniumtown
Copy link
Author

@Celibistrial I'll take a look at what you have so far when I have a chance. thanks for taking a stab at it!

@Titaniumtown
Copy link
Author

@Celibistrial shouldn't we be compiling it and not downloading a binary?

@Celibistrial
Copy link

Celibistrial commented Jun 2, 2024

Yea, we should be compiling from source, but I used the deb binary to get things working quickly(or at least tried to). I'm not sure how write a derivation that compiles this from source, it seems to use npm and rust together?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants