2020-05-25 18:36:27 +02:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, mkDerivation
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mlv-app";
|
2024-04-05 12:16:44 +02:00
|
|
|
version = "1.14";
|
2020-05-25 18:36:27 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ilia3101";
|
|
|
|
repo = "MLV-App";
|
|
|
|
rev = "QTv${version}";
|
2024-04-05 12:16:44 +02:00
|
|
|
sha256 = "sha256-RfZXHmWSjZBxNFwQ/bzHppsLS0LauURIdnkAzxAIBcU=";
|
2020-05-25 18:36:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = if stdenv.isAarch64 then ./aarch64-flags.patch else null;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm555 -t $out/bin mlvapp
|
|
|
|
install -Dm444 -t $out/share/applications mlvapp.desktop
|
|
|
|
install -Dm444 -t $out/share/icons/hicolor/512x512/apps RetinaIMG/MLVAPP.png
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
qmakeFlags = [ "MLVApp.pro" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
cd platform/qt/
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtmultimedia
|
|
|
|
qtbase
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapQtApp "$out/bin/mlvapp"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "All in one MLV processing app that is pretty great";
|
|
|
|
homepage = "https://mlv.app";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kiwi
|
|
|
|
];
|
|
|
|
platforms = platforms.linux;
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "mlvapp";
|
2020-05-25 18:36:27 +02:00
|
|
|
};
|
|
|
|
}
|