Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / gcompris / default.nix
blob4a5670bb9c3e02650c87a4d465ece90574f6b56f
1 { stdenv
2 , cmake
3 , fetchurl
4 , gettext
5 , gst_all_1
6 , lib
7 , ninja
8 , wrapQtAppsHook
9 , qmlbox2d
10 , qtbase
11 , qtcharts
12 , qtdeclarative
13 , qtgraphicaleffects
14 , qtmultimedia
15 , qtquickcontrols2
16 , qtsensors
17 , qttools
18 , qtxmlpatterns
21 stdenv.mkDerivation rec {
22   pname = "gcompris";
23   version = "3.3";
25   src = fetchurl {
26     url = "https://download.kde.org/stable/gcompris/qt/src/gcompris-qt-${version}.tar.xz";
27     hash = "sha256-8hqiq1wYw4irbOXCrwcJqTMuLISzSmSqPuw2Rn8XzQA=";
28   };
30   cmakeFlags = [
31     "-DQML_BOX2D_LIBRARY=${qmlbox2d}/${qtbase.qtQmlPrefix}/Box2D.2.1"
32   ];
34   nativeBuildInputs = [ cmake gettext ninja qttools wrapQtAppsHook ];
36   buildInputs = [
37     qmlbox2d
38     qtbase
39     qtcharts
40     qtdeclarative
41     qtgraphicaleffects
42     qtmultimedia
43     qtquickcontrols2
44     qtsensors
45     qtxmlpatterns
46   ] ++ (with gst_all_1; [
47     gstreamer
48     gst-plugins-base
49     gst-plugins-good
50     gst-plugins-bad
51   ]);
53   postInstall = ''
54     install -Dm444 ../org.kde.gcompris.desktop     -t $out/share/applications
55     install -Dm444 ../org.kde.gcompris.appdata.xml -t $out/share/metainfo
56     install -Dm444 ../images/256-apps-gcompris-qt.png $out/share/icons/hicolor/256x256/apps/gcompris-qt.png
58     qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
59   '';
61   meta = with lib; {
62     description = "A high quality educational software suite, including a large number of activities for children aged 2 to 10";
63     homepage = "https://gcompris.net/";
64     license = licenses.gpl3Plus;
65     mainProgram = "gcompris-qt";
66     maintainers = with maintainers; [ guibou ];
67     platforms = platforms.linux;
68   };