2021-01-15 14:45:37 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2011-04-06 14:21:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-07-31 16:44:48 +00:00
|
|
|
version = "0.3.113";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libaio";
|
2011-04-06 14:21:48 +00:00
|
|
|
|
2014-08-29 12:45:04 +00:00
|
|
|
src = fetchurl {
|
2020-03-13 21:42:53 +00:00
|
|
|
url = "https://pagure.io/libaio/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.gz";
|
2022-07-31 16:44:48 +00:00
|
|
|
sha256 = "sha256-cWxwWXAyRzROsGa1TsvDyiE08BAzBxkubCt9q1+VKKs=";
|
2011-04-06 14:21:48 +00:00
|
|
|
};
|
|
|
|
|
2018-08-08 21:20:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs harness
|
|
|
|
|
|
|
|
# Makefile is too optimistic, gcc is too smart
|
|
|
|
substituteInPlace harness/Makefile \
|
|
|
|
--replace "-Werror" ""
|
|
|
|
'';
|
|
|
|
|
2019-10-26 15:39:27 +00:00
|
|
|
makeFlags = [
|
2021-01-24 09:19:10 +00:00
|
|
|
"prefix=${placeholder "out"}"
|
2021-02-27 21:29:19 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isStatic "ENABLE_SHARED=0";
|
2011-04-06 14:21:48 +00:00
|
|
|
|
2021-01-15 14:45:37 +00:00
|
|
|
hardeningDisable = lib.optional (stdenv.isi686) "stackprotector";
|
2016-03-29 00:34:20 +00:00
|
|
|
|
2018-08-08 21:20:15 +00:00
|
|
|
checkTarget = "partcheck"; # "check" needs root
|
|
|
|
|
2011-04-06 14:21:48 +00:00
|
|
|
meta = {
|
|
|
|
description = "Library for asynchronous I/O in Linux";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://lse.sourceforge.net/io/aio.html";
|
2021-01-15 14:45:37 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
2011-04-06 14:21:48 +00:00
|
|
|
};
|
|
|
|
}
|