2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-04-16 15:18:24 +00:00

atftp: enable tests

This commit is contained in:
Robert Scott 2021-09-18 15:52:54 +01:00
parent 1084233889
commit 70da176466

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, readline, tcp_wrappers, pcre, makeWrapper, gcc }:
{ lib, stdenv, fetchurl, readline, tcp_wrappers, pcre, makeWrapper, gcc, ps }:
stdenv.mkDerivation rec {
pname = "atftp";
@ -9,13 +9,19 @@ stdenv.mkDerivation rec {
sha256 = "12h3sgkd25j4nfagil2jqyj1n8yxvaawj0cf01742642n57pmj4k";
};
# fix test script
postPatch = ''
patchShebangs .
'';
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ readline tcp_wrappers pcre gcc ];
# Expects pre-GCC5 inline semantics
NIX_CFLAGS_COMPILE = "-std=gnu89";
doCheck = false; # fails
doCheck = true;
checkInputs = [ ps ];
meta = {
description = "Advanced tftp tools";