2018-02-27 22:37:02 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch }:
|
2011-04-06 15:21:48 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-29 13:45:04 +01:00
|
|
|
version = "0.3.110";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libaio";
|
2011-04-06 15:21:48 +01:00
|
|
|
|
2014-08-29 13:45:04 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://fedorahosted.org/releases/l/i/libaio/${pname}-${version}.tar.gz";
|
2014-08-29 13:45:04 +01:00
|
|
|
sha256 = "0zjzfkwd1kdvq6zpawhzisv7qbq1ffs343i5fs9p498pcf7046g0";
|
2011-04-06 15:21:48 +01:00
|
|
|
};
|
|
|
|
|
2018-02-27 22:37:02 +00:00
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = https://pagure.io/libaio/c/da47c32b2ff39e52fbed1622c34b86bc88d7c217.patch;
|
|
|
|
sha256 = "1kqpiswjn549s3w3m89bw5qkl7bw5pvq6gp5cdzd926ymlgivj5c";
|
|
|
|
}) ];
|
|
|
|
|
2018-08-08 22:20:15 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs harness
|
|
|
|
|
|
|
|
# Makefile is too optimistic, gcc is too smart
|
|
|
|
substituteInPlace harness/Makefile \
|
|
|
|
--replace "-Werror" ""
|
|
|
|
'';
|
|
|
|
|
2011-04-06 15:21:48 +01:00
|
|
|
makeFlags = "prefix=$(out)";
|
|
|
|
|
2016-03-29 01:34:20 +01:00
|
|
|
hardeningDisable = stdenv.lib.optional (stdenv.isi686) "stackprotector";
|
|
|
|
|
2018-08-08 22:20:15 +01:00
|
|
|
checkTarget = "partcheck"; # "check" needs root
|
|
|
|
|
2011-04-06 15:21:48 +01:00
|
|
|
meta = {
|
|
|
|
description = "Library for asynchronous I/O in Linux";
|
|
|
|
homepage = http://lse.sourceforge.net/io/aio.html;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-08-29 13:45:04 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2011-04-06 15:21:48 +01:00
|
|
|
};
|
|
|
|
}
|