Skip to content

Commit d152c8c

Browse files
authored
karlyriceditor: init at 3.3 (#408147)
2 parents 2305056 + 0625ffa commit d152c8c

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
stdenv,
3+
lib,
4+
fetchFromGitHub,
5+
qt6,
6+
ffmpeg_4,
7+
pkg-config,
8+
}:
9+
10+
stdenv.mkDerivation (finalAttrs: {
11+
pname = "karlyriceditor";
12+
version = "3.3";
13+
14+
src = fetchFromGitHub {
15+
owner = "gyunaev";
16+
repo = "karlyriceditor";
17+
rev = finalAttrs.version;
18+
hash = "sha256-i4uZtHxnreow7a5ZX6WCXMUSwgkUJS/1oDCJOgfFjHw=";
19+
};
20+
21+
nativeBuildInputs = [
22+
qt6.wrapQtAppsHook
23+
qt6.qmake
24+
pkg-config
25+
];
26+
27+
buildInputs = [
28+
ffmpeg_4
29+
qt6.qtmultimedia
30+
];
31+
32+
installPhase = ''
33+
runHook preInstall
34+
35+
install -Dm755 bin/karlyriceditor $out/bin/karlyriceditor
36+
install -Dm644 packages/karlyriceditor.desktop $out/share/applications/karlyriceditor.desktop
37+
install -Dm644 packages/karlyriceditor.png $out/share/pixmaps/karlyriceditor.png
38+
39+
substituteInPlace $out/share/applications/karlyriceditor.desktop \
40+
--replace-fail 'Icon=/usr/share/pixmaps/karlyriceditor.png' 'Icon=karlyriceditor'
41+
42+
runHook postInstall
43+
'';
44+
45+
meta = {
46+
description = "Edit and synchronize lyrics with karaoke songs in various formats";
47+
homepage = "https://github.com/gyunaev/karlyriceditor";
48+
license = lib.licenses.gpl3Only;
49+
maintainers = with lib.maintainers; [
50+
DPDmancul
51+
];
52+
mainProgram = "karlyricseditor";
53+
platforms = lib.platforms.linux;
54+
};
55+
})

0 commit comments

Comments
 (0)