Unverified Commit ad6acfc3 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #307256 from jchw-forks/adopt/makemkv

makemkv: add jchw to maintainers
parents e05b8bb9 bd10b937
Loading
Loading
Loading
Loading
+37 −23
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,9 +95,12 @@ 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; [ ];
    maintainers = with maintainers; [ jchw ];
  };
}