7 stdenv.mkDerivation rec {
12 url = "https://pagure.io/libaio/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.gz";
13 sha256 = "sha256-cWxwWXAyRzROsGa1TsvDyiE08BAzBxkubCt9q1+VKKs=";
19 # Makefile is too optimistic, gcc is too smart
20 substituteInPlace harness/Makefile \
21 --replace "-Werror" ""
25 "prefix=${placeholder "out"}"
26 ] ++ lib.optional stdenv.hostPlatform.isStatic "ENABLE_SHARED=0";
28 hardeningDisable = lib.optional (stdenv.hostPlatform.isi686) "stackprotector";
30 checkTarget = "partcheck"; # "check" needs root
33 description = "Library for asynchronous I/O in Linux";
34 homepage = "https://lse.sourceforge.net/io/aio.html";
35 platforms = lib.platforms.linux;
36 license = lib.licenses.lgpl21;