mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
36 lines
934 B
Nix
36 lines
934 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.3.113";
|
|
pname = "libaio";
|
|
|
|
src = fetchurl {
|
|
url = "https://pagure.io/libaio/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-cWxwWXAyRzROsGa1TsvDyiE08BAzBxkubCt9q1+VKKs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs harness
|
|
|
|
# Makefile is too optimistic, gcc is too smart
|
|
substituteInPlace harness/Makefile \
|
|
--replace "-Werror" ""
|
|
'';
|
|
|
|
makeFlags = [
|
|
"prefix=${placeholder "out"}"
|
|
] ++ lib.optional stdenv.hostPlatform.isStatic "ENABLE_SHARED=0";
|
|
|
|
hardeningDisable = lib.optional (stdenv.isi686) "stackprotector";
|
|
|
|
checkTarget = "partcheck"; # "check" needs root
|
|
|
|
meta = {
|
|
description = "Library for asynchronous I/O in Linux";
|
|
homepage = "https://lse.sourceforge.net/io/aio.html";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.lgpl21;
|
|
maintainers = [ ];
|
|
};
|
|
}
|