2023-02-02 18:25:31 +00:00
|
|
|
{ stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, gst_all_1
|
|
|
|
, lib
|
|
|
|
, ninja
|
2023-02-02 18:25:31 +00:00
|
|
|
, wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, qmlbox2d
|
|
|
|
, qtbase
|
2023-02-02 18:25:31 +00:00
|
|
|
, qtcharts
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtdeclarative
|
|
|
|
, qtgraphicaleffects
|
|
|
|
, qtmultimedia
|
2023-02-02 18:25:31 +00:00
|
|
|
, qtquickcontrols2
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtsensors
|
|
|
|
, qttools
|
|
|
|
, qtxmlpatterns
|
|
|
|
}:
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gcompris";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-30 09:31:56 +00:00
|
|
|
url = "https://download.kde.org/stable/gcompris/qt/src/gcompris-qt-${version}.tar.xz";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-wABGojMfiMgjUT5gVDfB5JmXK1SPkrIkqLT/403zUFI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2022-02-20 05:27:41 +00:00
|
|
|
"-DQML_BOX2D_LIBRARY=${qmlbox2d}/${qtbase.qtQmlPrefix}/Box2D.2.1"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [ cmake gettext ninja qttools wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
qmlbox2d
|
2023-02-02 18:25:31 +00:00
|
|
|
qtbase
|
|
|
|
qtcharts
|
2022-03-30 09:31:56 +00:00
|
|
|
qtdeclarative
|
|
|
|
qtgraphicaleffects
|
|
|
|
qtmultimedia
|
2023-02-02 18:25:31 +00:00
|
|
|
qtquickcontrols2
|
2022-03-30 09:31:56 +00:00
|
|
|
qtsensors
|
|
|
|
qtxmlpatterns
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ (with gst_all_1; [
|
2022-03-30 09:31:56 +00:00
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
2020-04-24 23:36:52 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
postInstall = ''
|
2022-03-30 09:31:56 +00:00
|
|
|
install -Dm444 ../org.kde.gcompris.desktop -t $out/share/applications
|
2020-04-24 23:36:52 +00:00
|
|
|
install -Dm444 ../org.kde.gcompris.appdata.xml -t $out/share/metainfo
|
2022-03-30 09:31:56 +00:00
|
|
|
install -Dm444 ../images/256-apps-gcompris-qt.png $out/share/icons/hicolor/256x256/apps/gcompris-qt.png
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A high quality educational software suite, including a large number of activities for children aged 2 to 10";
|
|
|
|
homepage = "https://gcompris.net/";
|
|
|
|
license = licenses.gpl3Plus;
|
2022-03-30 09:31:56 +00:00
|
|
|
mainProgram = "gcompris-qt";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ guibou ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|