depot/third_party/nixpkgs/pkgs/os-specific/linux/libaio/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

35 lines
905 B
Nix

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