Loading pkgs/applications/video/anilibria-winmaclinux/0001-fix-instalation-paths.patch 0 → 100644 +24 −0 Original line number Diff line number Diff line diff --git a/AniLibria.pro b/AniLibria.pro index 3eb7213..ea571ff 100644 --- a/AniLibria.pro +++ b/AniLibria.pro @@ -271,17 +271,8 @@ QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = -# Default rules for deployment. -!flatpak{ - qnx: target.path = /tmp/$${TARGET}/bin - else: unix:!android: target.path = /opt/$${TARGET}/bin -}else{ - target.path = $$PREFIX/bin -} -!isEmpty(target.path) { - unix: INSTALLS += target desktop $${UNIX_ICONS} - else:macx: INSTALLS += target -} +target.path = $$PREFIX/bin +INSTALLS += target $${UNIX_ICONS} flatpak { metadata.path = $$PREFIX/share/metainfo pkgs/applications/video/anilibria-winmaclinux/0002-disable-version-check.patch 0 → 100644 +12 −0 Original line number Diff line number Diff line diff --git a/AniLibria.pro b/AniLibria.pro index 3eb7213..3d39ec9 100644 --- a/AniLibria.pro +++ b/AniLibria.pro @@ -174,7 +174,6 @@ unix { DEFINES += QT_DEPRECATED_WARNINGS # If you need not check version remove or comment this line -DEFINES += USE_VERSION_CHECK # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. pkgs/applications/video/anilibria-winmaclinux/default.nix 0 → 100644 +91 −0 Original line number Diff line number Diff line { mkDerivation , lib , fetchFromGitHub , qmake , qtbase , qtquickcontrols2 , qtwebsockets , qtmultimedia , gst_all_1 , wrapQtAppsHook , makeDesktopItem , copyDesktopItems }: mkDerivation rec { pname = "anilibria-winmaclinux"; version = "1.2.9"; src = fetchFromGitHub { owner = "anilibria"; repo = "anilibria-winmaclinux"; rev = version; sha256 = "sha256-Fdj7i4jpKIDwaIBAch7SjIV/WnqMDnCfNYSiZLsamx8="; }; sourceRoot = "source/src"; qmakeFlags = [ "PREFIX=${placeholder "out"}" ]; patches = [ ./0001-fix-instalation-paths.patch ./0002-disable-version-check.patch ]; preConfigure = '' substituteInPlace AniLibria.pro \ --replace "\$\$PREFIX" '${placeholder "out"}' ''; qtWrapperArgs = [ "--prefix GST_PLUGIN_PATH : ${(with gst_all_1; lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [ gst-plugins-bad gst-plugins-good gst-plugins-base gst-libav gstreamer ])}" ]; nativeBuildInputs = [ qmake wrapQtAppsHook copyDesktopItems ]; buildInputs = [ qtbase qtquickcontrols2 qtwebsockets qtmultimedia ] ++ (with gst_all_1; [ gst-plugins-bad gst-plugins-good gst-plugins-base gst-libav gstreamer ]); desktopItems = [ (makeDesktopItem (rec { name = "AniLibria"; desktopName = name; icon = "anilibria"; comment = meta.description; genericName = "AniLibria desktop client"; categories = [ "Qt" "AudioVideo" "Player" ]; keywords = [ "anime" ]; exec = name; terminal = false; })) ]; meta = with lib; { homepage = "https://github.com/anilibria/anilibria-winmaclinux"; description = "AniLibria cross platform desktop client"; license = licenses.gpl3; maintainers = with maintainers; [ _3JlOy-PYCCKUi ]; inherit (qtbase.meta) platforms; mainProgram = "AniLibria"; }; } pkgs/top-level/all-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -30291,6 +30291,8 @@ with pkgs; appvm = callPackage ../applications/virtualization/appvm { }; anilibria-winmaclinux = libsForQt5.callPackage ../applications/video/anilibria-winmaclinux { }; yggdrasil = callPackage ../tools/networking/yggdrasil { }; masterpdfeditor = libsForQt5.callPackage ../applications/misc/masterpdfeditor { }; Loading
pkgs/applications/video/anilibria-winmaclinux/0001-fix-instalation-paths.patch 0 → 100644 +24 −0 Original line number Diff line number Diff line diff --git a/AniLibria.pro b/AniLibria.pro index 3eb7213..ea571ff 100644 --- a/AniLibria.pro +++ b/AniLibria.pro @@ -271,17 +271,8 @@ QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = -# Default rules for deployment. -!flatpak{ - qnx: target.path = /tmp/$${TARGET}/bin - else: unix:!android: target.path = /opt/$${TARGET}/bin -}else{ - target.path = $$PREFIX/bin -} -!isEmpty(target.path) { - unix: INSTALLS += target desktop $${UNIX_ICONS} - else:macx: INSTALLS += target -} +target.path = $$PREFIX/bin +INSTALLS += target $${UNIX_ICONS} flatpak { metadata.path = $$PREFIX/share/metainfo
pkgs/applications/video/anilibria-winmaclinux/0002-disable-version-check.patch 0 → 100644 +12 −0 Original line number Diff line number Diff line diff --git a/AniLibria.pro b/AniLibria.pro index 3eb7213..3d39ec9 100644 --- a/AniLibria.pro +++ b/AniLibria.pro @@ -174,7 +174,6 @@ unix { DEFINES += QT_DEPRECATED_WARNINGS # If you need not check version remove or comment this line -DEFINES += USE_VERSION_CHECK # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line.
pkgs/applications/video/anilibria-winmaclinux/default.nix 0 → 100644 +91 −0 Original line number Diff line number Diff line { mkDerivation , lib , fetchFromGitHub , qmake , qtbase , qtquickcontrols2 , qtwebsockets , qtmultimedia , gst_all_1 , wrapQtAppsHook , makeDesktopItem , copyDesktopItems }: mkDerivation rec { pname = "anilibria-winmaclinux"; version = "1.2.9"; src = fetchFromGitHub { owner = "anilibria"; repo = "anilibria-winmaclinux"; rev = version; sha256 = "sha256-Fdj7i4jpKIDwaIBAch7SjIV/WnqMDnCfNYSiZLsamx8="; }; sourceRoot = "source/src"; qmakeFlags = [ "PREFIX=${placeholder "out"}" ]; patches = [ ./0001-fix-instalation-paths.patch ./0002-disable-version-check.patch ]; preConfigure = '' substituteInPlace AniLibria.pro \ --replace "\$\$PREFIX" '${placeholder "out"}' ''; qtWrapperArgs = [ "--prefix GST_PLUGIN_PATH : ${(with gst_all_1; lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [ gst-plugins-bad gst-plugins-good gst-plugins-base gst-libav gstreamer ])}" ]; nativeBuildInputs = [ qmake wrapQtAppsHook copyDesktopItems ]; buildInputs = [ qtbase qtquickcontrols2 qtwebsockets qtmultimedia ] ++ (with gst_all_1; [ gst-plugins-bad gst-plugins-good gst-plugins-base gst-libav gstreamer ]); desktopItems = [ (makeDesktopItem (rec { name = "AniLibria"; desktopName = name; icon = "anilibria"; comment = meta.description; genericName = "AniLibria desktop client"; categories = [ "Qt" "AudioVideo" "Player" ]; keywords = [ "anime" ]; exec = name; terminal = false; })) ]; meta = with lib; { homepage = "https://github.com/anilibria/anilibria-winmaclinux"; description = "AniLibria cross platform desktop client"; license = licenses.gpl3; maintainers = with maintainers; [ _3JlOy-PYCCKUi ]; inherit (qtbase.meta) platforms; mainProgram = "AniLibria"; }; }
pkgs/top-level/all-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -30291,6 +30291,8 @@ with pkgs; appvm = callPackage ../applications/virtualization/appvm { }; anilibria-winmaclinux = libsForQt5.callPackage ../applications/video/anilibria-winmaclinux { }; yggdrasil = callPackage ../tools/networking/yggdrasil { }; masterpdfeditor = libsForQt5.callPackage ../applications/misc/masterpdfeditor { };