karlyriceditor: init at 3.3

This commit is contained in:
DPDmancul 2025-05-17 23:06:52 +02:00
parent 6b1a92f5a4
commit 0625ffaf9d
No known key found for this signature in database
GPG key ID: EC1145E786990CED

View file

@ -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;
};
})