12 pydeps = with python3.pkgs; [
17 python = python3.withPackages (pkgs: pydeps);
19 stdenv.mkDerivation rec {
23 source = fetchFromGitHub {
24 owner = "makehumancommunity";
27 hash = "sha256-mCv6H0B7b4uxozpNHkKsG+Is2H0QYEJnnzKCHixhBpY=";
28 name = "${pname}-source";
31 assets = fetchFromGitHub {
32 owner = "makehumancommunity";
33 repo = "makehuman-assets";
35 hash = "sha256-Jd2A0PAHVdFMnDLq4Mu5wsK/E6A4QpKjUyv66ix1Gbo=";
36 name = "${pname}-assets-source";
40 # work with numpy>=1.24
42 name = "fix-compile_targets.py-when-using-numpy-1.24.0-or-newer";
43 url = "https://patch-diff.githubusercontent.com/raw/makehumancommunity/makehuman/pull/220.patch";
44 hash = "sha256-ip7U83cCBrl+4gM1GZ2QQIER5Qur6HRu3a/TnHqk//g=";
46 # crash related to collections.Callable -> collections.abc.Callable
48 name = "remove-unnecessary-compatibility-test";
49 url = "https://patch-diff.githubusercontent.com/raw/makehumancommunity/makehuman/pull/188.patch";
50 hash = "sha256-HGrk3n7rhV4YgK8mNUdfHwQl8dFT8yuzjxorvwfMmJw=";
52 # some OpenGL issue causing blank windows on recent Qt
54 name = "qt-opengl-update-from-qglwidget-to-qopenglwidget-to-fix-blank";
55 url = "https://patch-diff.githubusercontent.com/raw/makehumancommunity/makehuman/pull/197.patch";
56 hash = "sha256-fEqBwg1Jd36nKWIT9XPr6Buj1N3AmTQg2LBaoX3eTxw=";
60 name = "switch-default-for-multisampling-and-disable-sample-buffers";
61 url = "https://github.com/makehumancommunity/makehuman/commit/c47b884028a24eb190d097e7523a3059e439cb6f.patch";
62 hash = "sha256-tknQHX9qQYH15gyOLNhxfO3bsFVIv3Z1F7ZXD1IT1h4=";
66 name = "fix-scrolling-issue-on-pyqt5>=5.12";
67 url = "https://github.com/makehumancommunity/makehuman/commit/02c4269a2d4c57f68159fe8f437a8b1978b99099.patch";
68 hash = "sha256-yR5tZcELX0N83PW/vS6yB5xKoZcHhVp48invlu7quWM=";
91 propagatedBuildInputs = with python3.pkgs; [
95 finalSource = "${pname}-final";
99 cp -r $source/makehuman $finalSource
100 chmod u+w $finalSource --recursive
101 cp -r $assets/base/* $finalSource/makehuman/data
102 chmod u+w $finalSource --recursive
103 sourceRoot=$finalSource
111 python3 ./compile_targets.py
112 python3 ./compile_models.py
113 python3 ./compile_proxies.py
115 runHook postConfigure
120 mkdir -p $out/opt $out/bin
122 python -m compileall -o 0 -o 2 $out/opt
123 ln -s $out/opt/makehuman/makehuman.py $out/bin/makehuman
124 chmod +x $out/bin/makehuman
129 wrapQtApp $out/bin/makehuman
133 description = "Software to create realistic humans";
134 homepage = "http://www.makehumancommunity.org/";
135 license = with lib.licenses; [ agpl3Plus cc0 ];
137 MakeHuman is a GUI program for procedurally generating
138 realistic-looking humans.
140 mainProgram = "makehuman";
141 maintainers = with lib.maintainers; [ elisesouche ];
142 platforms = lib.platforms.all;