18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
25 rev = "upstream/${version}";
26 sha256 = "13q02xpmps9qg8zrzzy2gzv4a6afgi28lxk4z242j780v0gphchp";
30 # patch from debian to support libpng16 instead of libpng12
32 url = "https://salsa.debian.org/tux4kids-pkg-team/t4kcommon/raw/f7073fa384f5a725139f54844e59b57338b69dc7/debian/patches/libpng16.patch";
33 sha256 = "1lcpkdy5gvxgljg1vkrxych74amq0gramb1snj2831dam48is054";
37 # Workaround build failure on -fno-common toolchains like upstream
38 # gcc-10. Otherwise build fails as:
39 # ld: CMakeFiles/t4k_common.dir/t4k_throttle.c.o:(.bss+0x0): multiple definition of
40 # `wrapped_lines'; CMakeFiles/t4k_common.dir/t4k_audio.c.o:(.bss+0x0): first defined here
41 # TODO: revisit https://github.com/tux4kids/t4kcommon/pull/10 when merged.
42 env.NIX_CFLAGS_COMPILE = "-fcommon";
60 description = "Library of code shared between tuxmath and tuxtype";
61 homepage = "https://github.com/tux4kids/t4kcommon";
62 license = licenses.gpl3Plus;
63 maintainers = [ maintainers.aanderse ];
64 platforms = platforms.linux;