Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libsForQt5.rlottie-qml: init at 0-unstable-2021-05-03 #285781

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions pkgs/development/libraries/rlottie-qml/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{ stdenv
, lib
, fetchFromGitLab
, fetchpatch
, cmake
, qtbase
, qtdeclarative
, qtmultimedia
, quazip
, rlottie
}:

stdenv.mkDerivation (finalAttrs: {
pname = "rlottie-qml";
version = "0-unstable-2021-05-03";

src = fetchFromGitLab {
owner = "mymike00";
repo = "rlottie-qml";
rev = "f9506889a284039888c7a43db37e155bb7b30c40";
hash = "sha256-e2/4e1GGFfJMwShy6qgnUVVRxjV4WfjQwcqs09RK194=";
};

outputs = [
"out"
"dev"
];

patches = [
# Remove when https://gitlab.com/mymike00/rlottie-qml/-/merge_requests/1 merged
(fetchpatch {
name = "0001-rlottie-qml-Use-upstream-QuaZip-config-module.patch";
url = "https://gitlab.com/mymike00/rlottie-qml/-/commit/5656211dd8ae190795e343f47a3393fd3d8d25a4.patch";
hash = "sha256-t2NlYVU+D8hKd+AvBWPEavAhJKlk7Q3y2iAQSYtks5k=";
})
];

postPatch = ''
# Fix QML install path
substituteInPlace CMakeLists.txt \
--replace-fail 'QT_IMPORTS_DIR "/lib/''${ARCH_TRIPLET}"' 'QT_IMPORTS_DIR "''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}"' \
--replace-fail "\''${QT_IMPORTS_DIR}/\''${PLUGIN}" "\''${QT_IMPORTS_DIR}" \
'';

strictDeps = true;

nativeBuildInputs = [
cmake
];

buildInputs = [
rlottie
qtbase
qtdeclarative
qtmultimedia
];

propagatedBuildInputs = [
# Config module requires this
quazip
];

# Only a QML module
dontWrapQtApps = true;

meta = with lib; {
description = "Library for using rlottie via QML";
homepage = "https://gitlab.com/mymike00/rlottie-qml";
license = licenses.gpl3Only;
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.all;
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/qt5-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ in (noExtraAttrs (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdP

qzxing = callPackage ../development/libraries/qzxing { };

rlottie-qml = callPackage ../development/libraries/rlottie-qml { };

soqt = callPackage ../development/libraries/soqt { };

telepathy = callPackage ../development/libraries/telepathy/qt { };
Expand Down
Loading