Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
91 lines
2.2 KiB
Nix
91 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
qt6,
|
|
libsForQt5,
|
|
fetchFromGitHub,
|
|
gst_all_1,
|
|
cmake,
|
|
libglvnd,
|
|
onetbb,
|
|
ninja,
|
|
pkg-config,
|
|
}:
|
|
let
|
|
inherit (libsForQt5) qcoro;
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "brickstore";
|
|
version = "2024.12.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rgriebl";
|
|
repo = "brickstore";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-4sxPplZ1t8sSfwTCeeBtfU4U0gcE9FROt6dKvkfyO6Q=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
libglvnd
|
|
ninja
|
|
pkg-config
|
|
qcoro
|
|
qt6.qtdoc
|
|
qt6.qtdeclarative
|
|
qt6.qtimageformats
|
|
qt6.qtmultimedia
|
|
qt6.qtquick3d
|
|
qt6.qtquicktimeline
|
|
qt6.qtshadertools
|
|
qt6.qttools
|
|
qt6.qtwayland
|
|
qt6.wrapQtAppsHook
|
|
onetbb
|
|
];
|
|
|
|
patches = [
|
|
./qcoro-cmake.patch # Don't have CMake fetch qcoro from github, get it from nixpkgs
|
|
./qjsonvalue-include.patch # Add a required '#include <QtCore/QJsonValue>'
|
|
];
|
|
|
|
# Since we get qcoro from nixpkgs instead, change the CMake file to reflect the right directory
|
|
preConfigure = ''
|
|
substituteInPlace cmake/BuildQCoro.cmake \
|
|
--replace-fail \
|
|
'add_subdirectory(''${qcoro_SOURCE_DIR} ''${qcoro_BINARY_DIR} EXCLUDE_FROM_ALL)' \
|
|
'add_subdirectory(${qcoro.src} ${qcoro}bin/qcoro)'
|
|
'';
|
|
|
|
qtWrapperArgs = [
|
|
''
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${
|
|
lib.makeLibraryPath [
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gst-plugins-base
|
|
gst_all_1.gst-plugins-good
|
|
gst_all_1.gst-plugins-bad
|
|
gst_all_1.gst-plugins-ugly
|
|
gst_all_1.gst-libav
|
|
]
|
|
}
|
|
''
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/rgriebl/brickstore/blob/main/CHANGELOG.md";
|
|
description = "BrickLink offline management tool";
|
|
homepage = "https://www.brickstore.dev/";
|
|
license = lib.licenses.gpl3Plus;
|
|
longDescription = ''
|
|
BrickStore is a BrickLink offline management tool.
|
|
It is multi-platform (Windows, macOS and Linux as well as iOS and Android),
|
|
multilingual (currently English, German, Spanish, Swedish and French), fast and stable.
|
|
'';
|
|
maintainers = with lib.maintainers; [ legojames ];
|
|
mainProgram = "brickstore";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|