1 { lib, stdenv, fetchurl, SDL, SDL_gfx, SDL_image, SDL_ttf, SDL_mixer, libpng
2 , libimagequant, cairo, librsvg, gettext, libpaper, fribidi, pkg-config, gperf
6 stdenv.mkDerivation rec {
11 url = "mirror://sourceforge/tuxpaint/${version}/${pname}-${version}.tar.gz";
12 sha256 = "sha256-qyuA6J34gijNDsCmyQtJ1UPLFXqjj7kMvTop8AFAVXo=";
16 SDL SDL_gfx SDL_image SDL_ttf SDL_mixer libpng cairo libimagequant librsvg
17 gettext libpaper fribidi pkg-config gperf imagemagick
19 hardeningDisable = [ "format" ];
20 makeFlags = [ "GPERF=${gperf}/bin/gperf"
22 "COMPLETIONDIR=$$out/share/bash-completion/completions"
25 patches = [ ./tuxpaint-completion.diff ];
27 grep -Zlr include.*SDL . | xargs -0 sed -i -e 's,"SDL,"SDL/SDL,'
32 url = "mirror://sourceforge/project/tuxpaint/tuxpaint-stamps/2021-11-25/tuxpaint-stamps-2021.11.25.tar.gz";
33 sha256 = "sha256-y1XuIbLSW0QO4has+rC7jZBq8cma28d+jbEe7DBYnVI=";
37 # Install desktop file
38 mkdir -p $out/share/applications
39 cp hildon/tuxpaint.xpm $out/share/pixmaps
40 sed -e "s+Exec=tuxpaint+Exec=$out/bin/tuxpaint+" < src/tuxpaint.desktop > $out/share/applications/tuxpaint.desktop
45 make install-all PREFIX=$out
46 rm -rf $out/share/tuxpaint/stamps/military
49 enableParallelBuilding = true;
52 description = "Open Source Drawing Software for Children";
53 homepage = "http://www.tuxpaint.org/";
54 license = lib.licenses.gpl3Plus;
55 maintainers = with lib.maintainers; [ woffs ];
56 platforms = lib.platforms.linux;