2018-04-24 21:25:13 +02:00
|
|
|
{ stdenv, fetchurl, SDL, SDL_image, SDL_ttf, SDL_mixer, libpng,
|
2020-06-06 18:15:15 +02:00
|
|
|
cairo, librsvg, gettext, libpaper, fribidi, pkgconfig, gperf, imagemagick }:
|
2018-04-24 21:25:13 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-06 18:15:15 +02:00
|
|
|
version = "0.9.24";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "tuxpaint";
|
2018-04-24 21:25:13 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/tuxpaint/${version}/${pname}-${version}.tar.gz";
|
2020-06-06 18:15:15 +02:00
|
|
|
sha256 = "06m1lg2pikfkmassfvvrbwqffwgixcmjh1li6akaldgkalpmfql7";
|
2018-04-24 21:25:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ SDL SDL_image SDL_ttf SDL_mixer libpng cairo
|
2020-06-06 18:15:15 +02:00
|
|
|
librsvg gettext libpaper fribidi pkgconfig gperf imagemagick ];
|
2018-04-24 21:25:13 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
makeFlags = [ "GPERF=${gperf}/bin/gperf"
|
|
|
|
"PREFIX=$$out"
|
|
|
|
"COMPLETIONDIR=$$out/share/bash-completion/completions"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./tuxpaint-completion.diff ];
|
|
|
|
postPatch = ''
|
|
|
|
grep -Zlr include.*SDL . | xargs -0 sed -i -e 's,"SDL,"SDL/SDL,'
|
|
|
|
'';
|
|
|
|
|
|
|
|
# stamps
|
|
|
|
stamps = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/tuxpaint/tuxpaint-stamps/2014-08-23/tuxpaint-stamps-2014.08.23.tar.gz";
|
|
|
|
sha256 = "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
tar xzf $stamps
|
|
|
|
cd tuxpaint-stamps-2014.08.23
|
|
|
|
make install-all PREFIX=$out
|
|
|
|
rm -rf $out/share/tuxpaint/stamps/military
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Open Source Drawing Software for Children";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.tuxpaint.org/";
|
2018-04-24 21:25:13 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ woffs ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|