10 stdenv.mkDerivation rec {
12 version = "3.31-2761";
14 src = fetchFromGitHub {
18 sha256 = "sha256-268TKCh3naebbw+sOQ6d4N/zl7UEVtc3l3flFAYHDU4=";
28 # remove tests which call out to https://tsduck.io/download/test/...
31 -e '/TSUNIT_TEST(testMasterPlaylist);/ d' \
32 -e '/TSUNIT_TEST(testMasterPlaylistWithAlternate);/ d' \
33 -e '/TSUNIT_TEST(testMediaPlaylist);/ d' \
34 src/utest/utestHLS.cpp
37 -e '/TSUNIT_TEST(testBetterSystemRandomGenerator);/ d' \
38 src/utest/utestSystemRandomGenerator.cpp
41 -e '/TSUNIT_ASSERT(request.downloadBinaryContent/ d' \
42 -e '/TSUNIT_ASSERT(!request.downloadBinaryContent/ d' \
43 -e '/TSUNIT_TEST(testGitHub);/ d' \
44 -e '/TSUNIT_TEST(testGoogle);/ d' \
45 -e '/TSUNIT_TEST(testNoRedirection);/ d' \
46 -e '/TSUNIT_TEST(testReadMeFile);/ d' \
47 src/utest/utestWebRequest.cpp
50 -e '/TSUNIT_TEST(testHomeDirectory);/ d' \
51 src/utest/utestSysUtils.cpp
54 -e '/TSUNIT_TEST(testIPv4Address);/ d' \
55 -e '/TSUNIT_TEST(testIPv4AddressConstructors);/ d' \
56 -e '/TSUNIT_TEST(testIPv4SocketAddressConstructors);/ d' \
57 -e '/TSUNIT_TEST(testTCPSocket);/ d' \
58 -e '/TSUNIT_TEST(testUDPSocket);/ d' \
59 src/utest/utestNetworking.cpp
62 enableParallelBuilding = true;
75 "SYSROOT=${placeholder "out"}"
85 description = "MPEG Transport Stream Toolkit";
86 homepage = "https://github.com/tsduck/tsduck";
87 license = licenses.bsd2;
88 maintainers = with maintainers; [ siriobalmelli ];
89 platforms = platforms.all;
90 # never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
91 broken = stdenv.hostPlatform.isDarwin;