aboutsummaryrefslogtreecommitdiff
path: root/pkgs/games/t4kcommon
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-02-15 21:42:18 -0500
committerAaron Andersen <aaron@fosslib.net>2019-02-16 07:50:29 -0500
commit773bd62dc916c915dcb4295b035a92e0cbbf7d9b (patch)
tree8f38ec1638ee7a1d960a1aa25cc85a773ff29362 /pkgs/games/t4kcommon
parentd01f931b9bd01068d26d38ea62025e8e48135961 (diff)
tuxtype: switch the src location, update .nix file to reflect changes
Diffstat (limited to 'pkgs/games/t4kcommon')
-rw-r--r--pkgs/games/t4kcommon/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/games/t4kcommon/default.nix b/pkgs/games/t4kcommon/default.nix
new file mode 100644
index 000000000000..f576403b70b2
--- /dev/null
+++ b/pkgs/games/t4kcommon/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, fetchurl, cmake, pkgconfig, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf, libpng, librsvg, libxml2 }:
+
+stdenv.mkDerivation rec {
+ version = "0.1.1";
+ pname = "t4kcommon";
+
+ src = fetchFromGitHub {
+ owner = "tux4kids";
+ repo = "t4kcommon";
+ rev = "upstream/${version}";
+ sha256 = "13q02xpmps9qg8zrzzy2gzv4a6afgi28lxk4z242j780v0gphchp";
+ };
+
+ patches = [
+ # patch from debian to support libpng16 instead of libpng12
+ (fetchurl {
+ url = "https://salsa.debian.org/tux4kids-pkg-team/t4kcommon/raw/f7073fa384f5a725139f54844e59b57338b69dc7/debian/patches/libpng16.patch";
+ sha256 = "1lcpkdy5gvxgljg1vkrxych74amq0gramb1snj2831dam48is054";
+ })
+ ];
+
+ nativeBuildInputs = [ cmake pkgconfig ];
+ buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf libpng librsvg libxml2 ];
+
+ meta = with stdenv.lib; {
+ description = "A library of code shared between tuxmath and tuxtype.";
+ homepage = https://github.com/tux4kids/t4kcommon;
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.aanderse ];
+ platforms = platforms.linux;
+ };
+}