1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/libaio/default.nix
Scott Worley c5a4f81898 libaio: 0.3.110 -> 0.3.111 & update source url from fedorahosted to pagure
fedorahosted.org was retired on March 1st, 2017

The changes in da47c32b2ff39e52fbed1622c34b86bc88d7c217.patch are
included in this release.
2020-06-14 08:59:43 +02:00

36 lines
930 B
Nix

{ stdenv, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
version = "0.3.111";
pname = "libaio";
src = fetchurl {
url = "https://pagure.io/libaio/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.gz";
sha256 = "1fih2y2js0dl9qshpyb14m0nnxlms2527shgcxg0hnbflv5igg76";
};
postPatch = ''
patchShebangs harness
# Makefile is too optimistic, gcc is too smart
substituteInPlace harness/Makefile \
--replace "-Werror" ""
'';
makeFlags = [
"prefix=${placeholder ''out''}"
];
hardeningDisable = stdenv.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 = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.lgpl21;
maintainers = with stdenv.lib.maintainers; [ ];
};
}