nixpkgs/pkgs/tools/networking/atftp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1011 B
Nix
Raw Normal View History

2023-01-08 17:18:56 +00:00
{ lib
, stdenv
, autoreconfHook
2023-01-08 17:18:56 +00:00
, fetchurl
, gcc
, makeWrapper
, 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 {
pname = "atftp";
version = "0.8.0";
2016-07-21 04:21:01 +00:00
src = fetchurl {
url = "mirror://sourceforge/atftp/${pname}-${version}.tar.gz";
hash = "sha256-3yqgicdnD56rQOVZjl0stqWC3FGCkm6lC01pDk438xY=";
};
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 = [
autoreconfHook
2023-01-08 17:18:56 +00:00
makeWrapper
];
buildInputs = [
gcc
pcre2
2023-01-08 17:18:56 +00:00
readline
tcp_wrappers
];
nativeCheckInputs = [
perl
2023-01-08 17:18:56 +00:00
ps
];
2016-07-21 04:21:01 +00:00
# Expects pre-GCC5 inline semantics
env.NIX_CFLAGS_COMPILE = "-std=gnu89";
2016-07-21 04:21:01 +00:00
2021-09-18 14:52:54 +00:00
doCheck = true;
2023-01-08 17:18:56 +00:00
meta = with lib; {
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;
};
}