diff options
author | 3JlOy_PYCCKUI <3jl0y_pycckui@riseup.net> | 2023-10-17 05:18:29 +0300 |
---|---|---|
committer | 3JlOy_PYCCKUI <3jl0y_pycckui@riseup.net> | 2023-10-18 03:41:26 +0300 |
commit | 0917aa4657eed29c30bb6098cfae5cc8e501f7ce (patch) | |
tree | 088da0bf0171a06968ad26fe581474039d9c921f /pkgs/applications/video | |
parent | 9ce032513e38d5fc7b489f2951e998f739cf3c46 (diff) | |
download | nixpkgs-0917aa4657eed29c30bb6098cfae5cc8e501f7ce.tar nixpkgs-0917aa4657eed29c30bb6098cfae5cc8e501f7ce.tar.gz nixpkgs-0917aa4657eed29c30bb6098cfae5cc8e501f7ce.tar.bz2 nixpkgs-0917aa4657eed29c30bb6098cfae5cc8e501f7ce.tar.lz nixpkgs-0917aa4657eed29c30bb6098cfae5cc8e501f7ce.tar.xz nixpkgs-0917aa4657eed29c30bb6098cfae5cc8e501f7ce.tar.zst nixpkgs-0917aa4657eed29c30bb6098cfae5cc8e501f7ce.zip |
anilibria-winmaclinux: build with libvlc
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/anilibria-winmaclinux/0003-build-with-vlc.patch | 28 | ||||
-rw-r--r-- | pkgs/applications/video/anilibria-winmaclinux/default.nix | 6 |
2 files changed, 33 insertions, 1 deletions
diff --git a/pkgs/applications/video/anilibria-winmaclinux/0003-build-with-vlc.patch b/pkgs/applications/video/anilibria-winmaclinux/0003-build-with-vlc.patch new file mode 100644 index 00000000000..6bdfcf2c2d2 --- /dev/null +++ b/pkgs/applications/video/anilibria-winmaclinux/0003-build-with-vlc.patch @@ -0,0 +1,28 @@ +diff --git a/AniLibria.pro b/AniLibria.pro +index 407dbde..ae69502 100644 +--- a/AniLibria.pro ++++ b/AniLibria.pro +@@ -21,17 +21,17 @@ windows { + DEFINES += NO_NEED_STANDART_PLAYER + } + +-#unix { +-# LIBS += -lvlc ++unix { ++ LIBS += -lvlc + + # INCLUDEPATH += /usr/include/ + # DEPENDPATH += /usr/include/ + +-# INCLUDEPATH += /usr/include/vlc/plugins +-# DEPENDPATH += /usr/include/vlc/plugins ++ INCLUDEPATH += @VLC_PATH@/vlc/plugins ++ DEPENDPATH += @VLC_PATH@/vlc/plugins + +-# CONFIG += buildwithvlc +-#} ++ CONFIG += buildwithvlc ++} + + buildwithvlc { + DEFINES += USE_VLC_PLAYER diff --git a/pkgs/applications/video/anilibria-winmaclinux/default.nix b/pkgs/applications/video/anilibria-winmaclinux/default.nix index 76cc3565d1f..0443cd68437 100644 --- a/pkgs/applications/video/anilibria-winmaclinux/default.nix +++ b/pkgs/applications/video/anilibria-winmaclinux/default.nix @@ -10,6 +10,7 @@ , wrapQtAppsHook , makeDesktopItem , copyDesktopItems +, libvlc }: mkDerivation rec { @@ -30,11 +31,13 @@ mkDerivation rec { 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 "\$\$PREFIX" '${placeholder "out"}' \ + --replace '@VLC_PATH@' '${libvlc}/include' ''; qtWrapperArgs = [ @@ -58,6 +61,7 @@ mkDerivation rec { qtquickcontrols2 qtwebsockets qtmultimedia + libvlc ] ++ (with gst_all_1; [ gst-plugins-bad gst-plugins-good |