Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchurl,
5 fetchpatch,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "netkit-tftp";
10 version = "0.17";
11
12 src = fetchurl {
13 urls = [
14 "mirror://ubuntu/pool/universe/n/netkit-tftp/netkit-tftp_${finalAttrs.version}.orig.tar.gz"
15 "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-tftp-${finalAttrs.version}.tar.gz"
16 "https://ftp.cc.uoc.gr/mirrors/linux/ubuntu/packages/pool/universe/n/netkit-tftp/netkit-tftp_${finalAttrs.version}.orig.tar.gz"
17 ];
18 hash = "sha256-OkPAAQ1OYfQSVj/YN2nUZn2LjoKQNSbSHLkgX+Va0U0=";
19 };
20
21 patches = [
22 # fix compilation errors, warning and many style issues
23 (fetchpatch {
24 url = "https://sources.debian.org/data/main/n/netkit-tftp/0.17-23/debian/patches/debian_changes_0.17-18.patch";
25 hash = "sha256-kprmSMoNF6E8GGRIPWDLWcqfPRxdUeheeLoFNqI3Uv0=";
26 })
27 ];
28
29 preInstall = "
30 mkdir -p $out/man/man{1,8} $out/sbin $out/bin
31 ";
32
33 meta = {
34 description = "Netkit TFTP client and server";
35 homepage = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/";
36 license = lib.licenses.bsdOriginal;
37 maintainers = [ ];
38 platforms = with lib.platforms; linux;
39 };
40})