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