Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / video / mlv-app / default.nix
blob757759b1146f355affd4a223a1e47b6ece3384fe
1 { fetchFromGitHub
2 , lib
3 , mkDerivation
4 , qmake
5 , qtbase
6 , qtmultimedia
7 , stdenv
8 }:
10 mkDerivation rec {
11   pname = "mlv-app";
12   version = "1.11";
14   src = fetchFromGitHub {
15     owner = "ilia3101";
16     repo = "MLV-App";
17     rev = "QTv${version}";
18     sha256 = "0s5sjdxi8a17ddvih4ara7mlb2xrc9xqx52jmhfaca6ng341gi4x";
19   };
21   patches = if stdenv.isAarch64 then ./aarch64-flags.patch else null;
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   '';
31   qmakeFlags = [ "MLVApp.pro" ];
33   preConfigure = ''
34     export HOME=$TMPDIR
35     cd platform/qt/
36   '';
38   buildInputs = [
39     qtmultimedia
40     qtbase
41   ];
43   dontWrapQtApps = true;
45   preFixup = ''
46     wrapQtApp "$out/bin/mlvapp"
47   '';
49   nativeBuildInputs = [
50     qmake
51   ];
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   };