Commit 65124175 authored by John Chadwick's avatar John Chadwick
Browse files

makemkv: reformat according to RFC166

parent ea146ade
Loading
Loading
Loading
Loading
+36 −22
Original line number Diff line number Diff line
{ lib
, mkDerivation
, fetchurl
, autoPatchelfHook
, pkg-config
, curl
, ffmpeg
, openssl
, qtbase
, zlib

, withJava ? true
, jre_headless
{
  lib,
  mkDerivation,
  fetchurl,
  autoPatchelfHook,
  pkg-config,
  curl,
  ffmpeg,
  openssl,
  qtbase,
  zlib,

  withJava ? true,
  jre_headless,
}:

let
@@ -30,12 +31,15 @@ let
    ];
    sha256 = "2dtNdyv0+QYWQrfrIu5RQKSN4scSWKuLFNlJZXpxDUM=";
  };

in mkDerivation {
in
mkDerivation {
  pname = "makemkv";
  inherit version;

  srcs = [ src_bin src_oss ];
  srcs = [
    src_bin
    src_oss
  ];

  sourceRoot = "makemkv-oss-${version}";

@@ -43,18 +47,25 @@ in mkDerivation {

  enableParallelBuilding = true;

  nativeBuildInputs = [ autoPatchelfHook pkg-config ];
  nativeBuildInputs = [
    autoPatchelfHook
    pkg-config
  ];

  buildInputs = [ ffmpeg openssl qtbase zlib ];
  buildInputs = [
    ffmpeg
    openssl
    qtbase
    zlib
  ];

  runtimeDependencies = [ (lib.getLib curl) ];

  qtWrapperArgs =
    let
      binPath = lib.makeBinPath [ jre_headless ];
    in lib.optionals withJava [
      "--prefix PATH : ${binPath}"
    ];
    in
    lib.optionals withJava [ "--prefix PATH : ${binPath}" ];

  installPhase = ''
    runHook preInstall
@@ -84,7 +95,10 @@ in mkDerivation {
      expiration date.
    '';
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
    license = [ licenses.unfree licenses.lgpl21 ];
    license = [
      licenses.unfree
      licenses.lgpl21
    ];
    homepage = "http://makemkv.com";
    platforms = [ "x86_64-linux" ];
    maintainers = with maintainers; [ ];