diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-02-20 12:16:56 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-02-20 12:16:56 +0100 |
commit | b24d64b3b1ef897f07cd072a88a9881cb330aa7f (patch) | |
tree | a87bb2eed9af3ef1efd51dd65221d91f0c949041 /nixpkgs/pkgs/development/libraries/rlottie-qml/default.nix | |
parent | 73338df7473bb3810e70a16b8b0cba4f0f606f2b (diff) | |
parent | fa15b53dbea5028db38d6e09b4cef6eba42aeebb (diff) | |
download | nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.gz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.bz2 nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.lz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.xz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.zst nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/rlottie-qml/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/rlottie-qml/default.nix | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/rlottie-qml/default.nix b/nixpkgs/pkgs/development/libraries/rlottie-qml/default.nix new file mode 100644 index 000000000000..5154c816624e --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/rlottie-qml/default.nix @@ -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; + }; +}) |