2023-01-08 17:18:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-01-08 17:27:25 +00:00
|
|
|
, autoreconfHook
|
2023-01-08 17:18:56 +00:00
|
|
|
, fetchurl
|
|
|
|
, gcc
|
|
|
|
, makeWrapper
|
2023-01-08 17:27:25 +00:00
|
|
|
, pcre2
|
|
|
|
, perl
|
2023-01-08 17:18:56 +00:00
|
|
|
, ps
|
|
|
|
, readline
|
|
|
|
, tcp_wrappers
|
|
|
|
}:
|
2016-07-21 04:21:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "atftp";
|
2023-01-08 17:27:25 +00:00
|
|
|
version = "0.8.0";
|
2016-07-21 04:21:01 +00:00
|
|
|
|
2014-09-13 15:39:40 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/atftp/${pname}-${version}.tar.gz";
|
2023-01-08 17:27:25 +00:00
|
|
|
hash = "sha256-3yqgicdnD56rQOVZjl0stqWC3FGCkm6lC01pDk438xY=";
|
2014-09-13 15:39:40 +00:00
|
|
|
};
|
2016-07-21 04:21:01 +00:00
|
|
|
|
2021-09-18 14:52:54 +00:00
|
|
|
# fix test script
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2023-01-08 17:18:56 +00:00
|
|
|
nativeBuildInputs = [
|
2023-01-08 17:27:25 +00:00
|
|
|
autoreconfHook
|
2023-01-08 17:18:56 +00:00
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gcc
|
2023-01-08 17:27:25 +00:00
|
|
|
pcre2
|
2023-01-08 17:18:56 +00:00
|
|
|
readline
|
|
|
|
tcp_wrappers
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-08 17:27:25 +00:00
|
|
|
perl
|
2023-01-08 17:18:56 +00:00
|
|
|
ps
|
|
|
|
];
|
2016-07-21 04:21:01 +00:00
|
|
|
|
|
|
|
# Expects pre-GCC5 inline semantics
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-std=gnu89";
|
2016-07-21 04:21:01 +00:00
|
|
|
|
2021-09-18 14:52:54 +00:00
|
|
|
doCheck = true;
|
2018-04-25 03:20:18 +00:00
|
|
|
|
2023-01-08 17:18:56 +00:00
|
|
|
meta = with lib; {
|
2014-09-13 15:39:40 +00:00
|
|
|
description = "Advanced tftp tools";
|
2023-01-08 17:18:56 +00:00
|
|
|
changelog = "https://sourceforge.net/p/atftp/code/ci/v${version}/tree/Changelog";
|
|
|
|
homepage = "https://sourceforge.net/projects/atftp/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2014-09-13 15:39:40 +00:00
|
|
|
};
|
2014-08-24 12:19:55 +00:00
|
|
|
}
|