netkittftp: fix compilation

This commit is contained in:
Petr Zahradnik
2025-03-27 00:50:05 +01:00
parent ee4dd4eb20
commit ead1e597be
+9
View File
@@ -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
";