From ead1e597bedf1c8d1fde1003f345578b675dfd19 Mon Sep 17 00:00:00 2001 From: Petr Zahradnik Date: Thu, 27 Mar 2025 00:50:05 +0100 Subject: [PATCH] netkittftp: fix compilation --- pkgs/by-name/ne/netkittftp/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/ne/netkittftp/package.nix b/pkgs/by-name/ne/netkittftp/package.nix index 077438c0e4e7..08b549b319ff 100644 --- a/pkgs/by-name/ne/netkittftp/package.nix +++ b/pkgs/by-name/ne/netkittftp/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch, }: stdenv.mkDerivation rec { @@ -17,6 +18,14 @@ stdenv.mkDerivation rec { sha256 = "0kfibbjmy85r3k92cdchha78nzb6silkgn1zaq9g8qaf1l0w0hrs"; }; + patches = [ + # fix compilation errors, warning and many style issues + (fetchpatch { + url = "https://sources.debian.org/data/main/n/netkit-tftp/0.17-23/debian/patches/debian_changes_0.17-18.patch"; + hash = "sha256-kprmSMoNF6E8GGRIPWDLWcqfPRxdUeheeLoFNqI3Uv0="; + }) + ]; + preInstall = " mkdir -p $out/man/man{1,8} $out/sbin $out/bin ";