Files
Victor Engmark c4f5dfad0d treewide: Remove continuation escape at end of commands
To avoid confusion and spurious newlines in the output.

Found by searching for a backslash followed by a newline, some
indentation, and then the end of multi-line string marker, using the
following extended regex:

```regex
\\\n +'';
```
2026-03-17 16:47:55 +01:00

76 lines
1.6 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
fetchpatch,
cmake,
pkg-config,
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
./1001-Use-upstream-QuaZip-CMake-config.patch
# Remove when https://gitlab.com/mymike00/rlottie-qml/-/merge_requests/3 merged
./1002-Find-rlottie-via-pkg-config.patch
];
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
pkg-config
];
buildInputs = [
rlottie
qtbase
qtdeclarative
qtmultimedia
];
propagatedBuildInputs = [
# Config module requires this
quazip
];
# Only a QML module
dontWrapQtApps = true;
meta = {
description = "Library for using rlottie via QML";
homepage = "https://gitlab.com/mymike00/rlottie-qml";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ OPNA2608 ];
platforms = lib.platforms.all;
};
})