electron-chromedriver_33: 33.3.0 -> 33.3.1
[NixPkgs.git] / pkgs / applications / video / mlv-app / default.nix
blobd008e08f3d2bce0294746b5290396badcf0f692b
2   fetchFromGitHub,
3   lib,
4   mkDerivation,
5   qmake,
6   qtbase,
7   qtmultimedia,
8   stdenv,
9 }:
11 mkDerivation rec {
12   pname = "mlv-app";
13   version = "1.14";
15   src = fetchFromGitHub {
16     owner = "ilia3101";
17     repo = "MLV-App";
18     rev = "QTv${version}";
19     sha256 = "sha256-RfZXHmWSjZBxNFwQ/bzHppsLS0LauURIdnkAzxAIBcU=";
20   };
22   patches = lib.optionals stdenv.hostPlatform.isAarch64 [
23     # remove optimization flags with x86 only instruction sets
24     ./aarch64-flags.patch
25   ];
27   installPhase = ''
28     runHook preInstall
29     install -Dm555 -t $out/bin                mlvapp
30     install -Dm444 -t $out/share/applications mlvapp.desktop
31     install -Dm444 -t $out/share/icons/hicolor/512x512/apps RetinaIMG/MLVAPP.png
32     runHook postInstall
33   '';
35   qmakeFlags = [ "MLVApp.pro" ];
37   preConfigure = ''
38     export HOME=$TMPDIR
39     cd platform/qt/
40   '';
42   buildInputs = [
43     qtmultimedia
44     qtbase
45   ];
47   dontWrapQtApps = true;
49   preFixup = ''
50     wrapQtApp "$out/bin/mlvapp"
51   '';
53   nativeBuildInputs = [
54     qmake
55   ];
57   meta = with lib; {
58     description = "All in one MLV processing app that is pretty great";
59     homepage = "https://mlv.app";
60     license = licenses.gpl3;
61     maintainers = [ ];
62     platforms = platforms.linux;
63     mainProgram = "mlvapp";
64   };