btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / tf / tftp-hpa / package.nix
blob15fd0473532709010b7c65ba131b44a945c1f45f
1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
4   pname = "tftp-hpa";
5   version="5.2";
6   src = fetchurl {
7     url = "mirror://kernel/software/network/tftp/tftp-hpa/${pname}-${version}.tar.xz";
8     sha256 = "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg";
9   };
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";
17   meta = with lib; {
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/";
23   };
25   passthru = {
26     updateInfo = {
27       downloadPage = "https://www.kernel.org/pub/software/network/tftp/";
28     };
29   };