nixpkgs/pkgs/os-specific/linux/libaio/default.nix

36 lines
930 B
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
2020-11-28 07:32:53 +00:00
version = "0.3.112";
pname = "libaio";
2014-08-29 13:45:04 +01:00
src = fetchurl {
url = "https://pagure.io/libaio/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.gz";
2020-11-28 07:32:53 +00:00
sha256 = "0wi2myh191sja13qj3claxhpfkngvy10x30f78hm9cxzkfr97kxp";
};
2018-08-08 22:20:15 +01:00
postPatch = ''
patchShebangs harness
# Makefile is too optimistic, gcc is too smart
substituteInPlace harness/Makefile \
--replace "-Werror" ""
'';
2019-10-26 16:39:27 +01:00
makeFlags = [
"prefix=${placeholder ''out''}"
];
hardeningDisable = stdenv.lib.optional (stdenv.isi686) "stackprotector";
2018-08-08 22:20:15 +01:00
checkTarget = "partcheck"; # "check" needs root
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; [ ];
};
}