2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.3.112";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libaio";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-06-15 15:56:04 +00:00
|
|
|
url = "https://pagure.io/libaio/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.gz";
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "0wi2myh191sja13qj3claxhpfkngvy10x30f78hm9cxzkfr97kxp";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs harness
|
|
|
|
|
|
|
|
# Makefile is too optimistic, gcc is too smart
|
|
|
|
substituteInPlace harness/Makefile \
|
|
|
|
--replace "-Werror" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
2021-02-05 17:12:51 +00:00
|
|
|
"prefix=${placeholder "out"}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
hardeningDisable = lib.optional (stdenv.isi686) "stackprotector";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkTarget = "partcheck"; # "check" needs root
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Library for asynchronous I/O in Linux";
|
|
|
|
homepage = "http://lse.sourceforge.net/io/aio.html";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|