@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, readline, tcp_wrappers, pcre, makeWrapper, gcc }:
1+{ lib, stdenv, fetchurl, readline, tcp_wrappers, pcre, makeWrapper, gcc, ps }:
22
33stdenv.mkDerivation rec {
44 pname = "atftp";
@@ -9,13 +9,19 @@ stdenv.mkDerivation rec {
99 sha256 = "12h3sgkd25j4nfagil2jqyj1n8yxvaawj0cf01742642n57pmj4k";
1010 };
1111
12+ # fix test script
13+ postPatch = ''
14+ patchShebangs .
15+ '';
16+
1217 nativeBuildInputs = [ makeWrapper ];
1318 buildInputs = [ readline tcp_wrappers pcre gcc ];
1419
1520 # Expects pre-GCC5 inline semantics
1621 NIX_CFLAGS_COMPILE = "-std=gnu89";
1722
18− doCheck = false; # fails
23+ doCheck = true;
24+ checkInputs = [ ps ];
1925
2026 meta = {
2127 description = "Advanced tftp tools";