tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / tf / tftp-hpa / package.nix
blob8a41255c839837bea59b9f142d25f51a890fa00b
2   lib,
3   stdenv,
4   fetchgit,
5   autoconf,
6   automake,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "tftp-hpa";
11   version = "5.2-untagged-2024-06-10";
12   src = fetchgit {
13     url = "git://git.kernel.org/pub/scm/network/tftp/tftp-hpa.git";
14     hash = "sha256-lTMldYO/cZdLj0UjOPPBHfYf2GBG0O+5lhP9ikqn3tY=";
15     rev = "2c86ff58dcc003107b47f2d35aa0fdc4a3fd95e1";
16   };
18   # Workaround build failure on -fno-common toolchains like upstream
19   # gcc-10. Otherwise build fails as:
20   #   ld: main.o:/build/tftp-hpa-5.2/tftp/main.c:98: multiple definition of
21   #     `toplevel'; tftp.o:/build/tftp-hpa-5.2/tftp/tftp.c:51: first defined here
22   env.NIX_CFLAGS_COMPILE = "-fcommon";
24   preConfigure = ''
25     ./autogen.sh
26   '';
28   nativeBuildInputs = [
29     autoconf
30     automake
31   ];
33   meta = with lib; {
34     description = "TFTP tools - a lot of fixes on top of BSD TFTP";
35     maintainers = with maintainers; [ raskin ];
36     platforms = platforms.linux;
37     license = licenses.bsd3;
38     homepage = "https://www.kernel.org/pub/software/network/tftp/";
39   };
41   passthru = {
42     updateInfo = {
43       downloadPage = "https://www.kernel.org/pub/software/network/tftp/";
44     };
45   };