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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
968 B
Nix
Raw Normal View History

2021-01-15 14:45:37 +00:00
{ lib, stdenv, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
2022-07-31 16:44:48 +00:00
version = "0.3.113";
pname = "libaio";
2014-08-29 12:45:04 +00:00
src = fetchurl {
url = "https://pagure.io/libaio/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.gz";
2022-07-31 16:44:48 +00:00
sha256 = "sha256-cWxwWXAyRzROsGa1TsvDyiE08BAzBxkubCt9q1+VKKs=";
};
2018-08-08 21:20:15 +00:00
postPatch = ''
patchShebangs harness
# Makefile is too optimistic, gcc is too smart
substituteInPlace harness/Makefile \
--replace "-Werror" ""
'';
2019-10-26 15:39:27 +00:00
makeFlags = [
"prefix=${placeholder "out"}"
] ++ lib.optional stdenv.hostPlatform.isStatic "ENABLE_SHARED=0";
2021-01-15 14:45:37 +00:00
hardeningDisable = lib.optional (stdenv.isi686) "stackprotector";
2018-08-08 21:20:15 +00:00
checkTarget = "partcheck"; # "check" needs root
meta = {
description = "Library for asynchronous I/O in Linux";
homepage = "https://lse.sourceforge.net/io/aio.html";
2021-01-15 14:45:37 +00:00
platforms = lib.platforms.linux;
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ ];
};
}