2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2011-08-30 07:02:01 +00:00
|
|
|
|
2015-04-20 10:05:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tftp-hpa";
|
2015-04-20 10:05:04 +00:00
|
|
|
version="5.2";
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://kernel/software/network/tftp/tftp-hpa/${pname}-${version}.tar.xz";
|
2015-04-20 10:05:04 +00:00
|
|
|
sha256 = "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg";
|
2011-08-30 07:02:01 +00:00
|
|
|
};
|
|
|
|
|
2022-05-29 21:09:46 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: main.o:/build/tftp-hpa-5.2/tftp/main.c:98: multiple definition of
|
|
|
|
# `toplevel'; tftp.o:/build/tftp-hpa-5.2/tftp/tftp.c:51: first defined here
|
|
|
|
NIX_CFLAGS_COMPILE="-fcommon";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2011-08-30 07:02:01 +00:00
|
|
|
description = "TFTP tools - a lot of fixes on top of BSD TFTP";
|
2015-04-20 10:05:04 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-25 22:04:57 +00:00
|
|
|
platforms = platforms.linux;
|
2015-04-20 10:05:04 +00:00
|
|
|
license = licenses.bsd3;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.kernel.org/pub/software/network/tftp/";
|
2011-08-30 07:02:01 +00:00
|
|
|
};
|
2015-04-20 10:05:04 +00:00
|
|
|
|
2011-08-30 07:02:01 +00:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
2017-08-02 21:50:51 +00:00
|
|
|
downloadPage = "https://www.kernel.org/pub/software/network/tftp/";
|
2011-08-30 07:02:01 +00:00
|
|
|
};
|
|
|
|
};
|
2015-04-20 10:05:04 +00:00
|
|
|
}
|