From 0625ffaf9dce0baa02339bbdb4e3543ae8833dd6 Mon Sep 17 00:00:00 2001 From: DPDmancul Date: Sat, 17 May 2025 23:06:52 +0200 Subject: [PATCH] karlyriceditor: init at 3.3 --- pkgs/by-name/ka/karlyriceditor/package.nix | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/ka/karlyriceditor/package.nix diff --git a/pkgs/by-name/ka/karlyriceditor/package.nix b/pkgs/by-name/ka/karlyriceditor/package.nix new file mode 100644 index 000000000000..399af098af05 --- /dev/null +++ b/pkgs/by-name/ka/karlyriceditor/package.nix @@ -0,0 +1,55 @@ +{ + stdenv, + lib, + fetchFromGitHub, + qt6, + ffmpeg_4, + pkg-config, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "karlyriceditor"; + version = "3.3"; + + src = fetchFromGitHub { + owner = "gyunaev"; + repo = "karlyriceditor"; + rev = finalAttrs.version; + hash = "sha256-i4uZtHxnreow7a5ZX6WCXMUSwgkUJS/1oDCJOgfFjHw="; + }; + + nativeBuildInputs = [ + qt6.wrapQtAppsHook + qt6.qmake + pkg-config + ]; + + buildInputs = [ + ffmpeg_4 + qt6.qtmultimedia + ]; + + installPhase = '' + runHook preInstall + + install -Dm755 bin/karlyriceditor $out/bin/karlyriceditor + install -Dm644 packages/karlyriceditor.desktop $out/share/applications/karlyriceditor.desktop + install -Dm644 packages/karlyriceditor.png $out/share/pixmaps/karlyriceditor.png + + substituteInPlace $out/share/applications/karlyriceditor.desktop \ + --replace-fail 'Icon=/usr/share/pixmaps/karlyriceditor.png' 'Icon=karlyriceditor' + + runHook postInstall + ''; + + meta = { + description = "Edit and synchronize lyrics with karaoke songs in various formats"; + homepage = "https://github.com/gyunaev/karlyriceditor"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ + DPDmancul + ]; + mainProgram = "karlyricseditor"; + platforms = lib.platforms.linux; + }; +})