diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-08-08 21:20:15 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-08-11 09:35:21 +0000 |
commit | 556da201b82dfed2b4db8420a4d39786230cdeb6 (patch) | |
tree | fcab2fe2f7988d3b54c6a1aefe133817a5f4aa2e /pkgs/os-specific/linux/libaio | |
parent | 0e3ffe430e52f2f24ceee6d01173e99c9f75bfd7 (diff) |
libaio: fix tests
Diffstat (limited to 'pkgs/os-specific/linux/libaio')
-rw-r--r-- | pkgs/os-specific/linux/libaio/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libaio/default.nix b/pkgs/os-specific/linux/libaio/default.nix index e2be136adee15..949c8135df7b5 100644 --- a/pkgs/os-specific/linux/libaio/default.nix +++ b/pkgs/os-specific/linux/libaio/default.nix @@ -14,10 +14,20 @@ stdenv.mkDerivation rec { sha256 = "1kqpiswjn549s3w3m89bw5qkl7bw5pvq6gp5cdzd926ymlgivj5c"; }) ]; + postPatch = '' + patchShebangs harness + + # Makefile is too optimistic, gcc is too smart + substituteInPlace harness/Makefile \ + --replace "-Werror" "" + ''; + makeFlags = "prefix=$(out)"; hardeningDisable = stdenv.lib.optional (stdenv.isi686) "stackprotector"; + checkTarget = "partcheck"; # "check" needs root + meta = { description = "Library for asynchronous I/O in Linux"; homepage = http://lse.sourceforge.net/io/aio.html; |