@@ -0,0 +1,62 @@
1+{ fetchFromGitHub
2+, lib
3+, mkDerivation
4+, qmake
5+, qtbase
6+, qtmultimedia
7+, stdenv
8+}:
9+
10+mkDerivation rec {
11+ pname = "mlv-app";
12+ version = "1.11";
13+
14+ src = fetchFromGitHub {
15+ owner = "ilia3101";
16+ repo = "MLV-App";
17+ rev = "QTv${version}";
18+ sha256 = "0s5sjdxi8a17ddvih4ara7mlb2xrc9xqx52jmhfaca6ng341gi4x";
19+ };
20+
21+ patches = if stdenv.isAarch64 then ./aarch64-flags.patch else null;
22+
23+ installPhase = ''
24+ runHook preInstall
25+ install -Dm555 -t $out/bin mlvapp
26+ install -Dm444 -t $out/share/applications mlvapp.desktop
27+ install -Dm444 -t $out/share/icons/hicolor/512x512/apps RetinaIMG/MLVAPP.png
28+ runHook postInstall
29+ '';
30+
31+ qmakeFlags = [ "MLVApp.pro" ];
32+
33+ preConfigure = ''
34+ export HOME=$TMPDIR
35+ cd platform/qt/
36+ '';
37+
38+ buildInputs = [
39+ qtmultimedia
40+ qtbase
41+ ];
42+
43+ dontWrapQtApps = true;
44+
45+ preFixup = ''
46+ wrapQtApp "$out/bin/mlvapp"
47+ '';
48+
49+ nativeBuildInputs = [
50+ qmake
51+ ];
52+
53+ meta = with lib; {
54+ description = "All in one MLV processing app that is pretty great";
55+ homepage = "https://mlv.app";
56+ license = licenses.gpl3;
57+ maintainers = with maintainers; [
58+ kiwi
59+ ];
60+ platforms = platforms.linux;
61+ };
62+}