Unverified Commit a9767322 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #274739 from 3JlOy-PYCCKUi/anilibria-winmaclinux

anilibria-winmaclinux: 1.2.12 -> 1.2.14
parents 1f04b1ac babc0626
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
, lib
, fetchFromGitHub
, qmake
, pkg-config
, qtbase
, qtquickcontrols2
, qtwebsockets
@@ -15,29 +16,27 @@

mkDerivation rec {
  pname = "anilibria-winmaclinux";
  version = "1.2.12";
  version = "1.2.14";

  src = fetchFromGitHub {
    owner = "anilibria";
    repo = "anilibria-winmaclinux";
    rev = version;
    sha256 = "sha256-J9MBnHrVnDaJ8Ykf/n8OkWKbK/JfMxorH9E+mKe3T8k=";
    rev = "d941607f078c72fca104ee1e7916cc0ddcc0acf5";
    sha256 = "sha256-G4KlYAjOT1UV29vcX7Q8dMTj0BX0rsJcLtK2MQag5nU=";
  };

  sourceRoot = "source/src";

  qmakeFlags = [ "PREFIX=${placeholder "out"}" ];
  qmakeFlags = [ "PREFIX=${placeholder "out"}" "CONFIG+=unixvlc" ];

  patches = [
    ./0001-fix-installation-paths.patch
    ./0002-disable-version-check.patch
    ./0003-build-with-vlc.patch
  ];

  preConfigure = ''
    substituteInPlace AniLibria.pro \
      --replace "\$\$PREFIX" '${placeholder "out"}' \
      --replace '@VLC_PATH@' '${libvlc}/include'
      --replace "\$\$PREFIX" '${placeholder "out"}'
  '';

  qtWrapperArgs = [
@@ -52,6 +51,7 @@ mkDerivation rec {

  nativeBuildInputs = [
    qmake
    pkg-config
    wrapQtAppsHook
    copyDesktopItems
  ];