1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
7 url = "mirror://kernel/software/network/tftp/tftp-hpa/${pname}-${version}.tar.xz";
8 sha256 = "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg";
11 # Workaround build failure on -fno-common toolchains like upstream
12 # gcc-10. Otherwise build fails as:
13 # ld: main.o:/build/tftp-hpa-5.2/tftp/main.c:98: multiple definition of
14 # `toplevel'; tftp.o:/build/tftp-hpa-5.2/tftp/tftp.c:51: first defined here
15 env.NIX_CFLAGS_COMPILE = "-fcommon";
18 description = "TFTP tools - a lot of fixes on top of BSD TFTP";
19 maintainers = with maintainers; [ raskin ];
20 platforms = platforms.linux;
21 license = licenses.bsd3;
22 homepage = "https://www.kernel.org/pub/software/network/tftp/";
27 downloadPage = "https://www.kernel.org/pub/software/network/tftp/";