diff options
author | Frank Doepper <woffs@woffs.de> | 2018-04-24 21:25:13 +0200 |
---|---|---|
committer | Frank Doepper <woffs@woffs.de> | 2018-04-24 21:25:13 +0200 |
commit | 82a9df76cce9f46ccf76aeab2a5f98fc38ea81ae (patch) | |
tree | 05448d951ed0510bb54685cef5a46b0dfd8da241 /pkgs/games/tuxpaint | |
parent | 78d9bffc0a69fcf7acf40674211b395908aa39db (diff) | |
download | nixpkgs-82a9df76cce9f46ccf76aeab2a5f98fc38ea81ae.tar nixpkgs-82a9df76cce9f46ccf76aeab2a5f98fc38ea81ae.tar.gz nixpkgs-82a9df76cce9f46ccf76aeab2a5f98fc38ea81ae.tar.bz2 nixpkgs-82a9df76cce9f46ccf76aeab2a5f98fc38ea81ae.tar.lz nixpkgs-82a9df76cce9f46ccf76aeab2a5f98fc38ea81ae.tar.xz nixpkgs-82a9df76cce9f46ccf76aeab2a5f98fc38ea81ae.tar.zst nixpkgs-82a9df76cce9f46ccf76aeab2a5f98fc38ea81ae.zip |
tuxpaint: init at 0.9.22
Diffstat (limited to 'pkgs/games/tuxpaint')
-rw-r--r-- | pkgs/games/tuxpaint/default.nix | 46 | ||||
-rw-r--r-- | pkgs/games/tuxpaint/tuxpaint-completion.diff | 16 |
2 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/games/tuxpaint/default.nix b/pkgs/games/tuxpaint/default.nix new file mode 100644 index 00000000000..ddf0782b210 --- /dev/null +++ b/pkgs/games/tuxpaint/default.nix @@ -0,0 +1,46 @@ +{ stdenv, fetchurl, SDL, SDL_image, SDL_ttf, SDL_mixer, libpng, + cairo, librsvg, gettext, libpaper, fribidi, pkgconfig, gperf }: + +stdenv.mkDerivation rec { + version = "0.9.22"; + name = "tuxpaint-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/tuxpaint/${version}/${name}.tar.gz"; + sha256 = "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"; + }; + + nativeBuildInputs = [ SDL SDL_image SDL_ttf SDL_mixer libpng cairo + librsvg gettext libpaper fribidi pkgconfig gperf ]; + 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"; + homepage = http://www.tuxpaint.org/; + license = stdenv.lib.licenses.gpl3; + maintainers = with stdenv.lib.maintainers; [ woffs ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/games/tuxpaint/tuxpaint-completion.diff b/pkgs/games/tuxpaint/tuxpaint-completion.diff new file mode 100644 index 00000000000..0824b2becf4 --- /dev/null +++ b/pkgs/games/tuxpaint/tuxpaint-completion.diff @@ -0,0 +1,16 @@ +--- tuxpaint-0.9.22/src/tuxpaint-completion.bash~ 1970-01-01 01:00:01.000000000 +0100 ++++ tuxpaint-0.9.22/src/tuxpaint-completion.bash 2018-03-06 10:54:03.437560921 +0100 +@@ -8,7 +8,6 @@ + # FIXME: See http://www.debian-administration.org/articles/316 for an intro + # to how we should be doing this... -bjk 2009.09.09 + +-have tuxpaint && + _tuxpaint() + { + local cur +@@ -96,4 +95,4 @@ + fi + + } +-[ "${have:-}" ] && complete -F _tuxpaint $filenames tuxpaint ++complete -F _tuxpaint $filenames tuxpaint |