mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ fetchFromGitHub
|
|
, lib
|
|
, mkDerivation
|
|
, qmake
|
|
, qtbase
|
|
, qtmultimedia
|
|
, stdenv
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "mlv-app";
|
|
version = "1.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ilia3101";
|
|
repo = "MLV-App";
|
|
rev = "QTv${version}";
|
|
sha256 = "sha256-RfZXHmWSjZBxNFwQ/bzHppsLS0LauURIdnkAzxAIBcU=";
|
|
};
|
|
|
|
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 = [ ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "mlvapp";
|
|
};
|
|
}
|