nixpkgs/pkgs/development/libraries/liburing/default.nix

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

45 lines
1.3 KiB
Nix
Raw Normal View History

2023-11-08 13:56:41 +00:00
{ lib, stdenv, fetchgit }:
stdenv.mkDerivation rec {
pname = "liburing";
2023-11-08 13:56:41 +00:00
version = "2.5";
src = fetchgit {
url = "http://git.kernel.dk/${pname}";
rev = "liburing-${version}";
2023-11-08 13:56:41 +00:00
sha256 = "sha256-hPyEZ0P1rfos53OCNd2OYFiqmv6TgpWaj5/xPLccCvM=";
};
separateDebugInfo = true;
enableParallelBuilding = true;
# Upstream's configure script is not autoconf generated, but a hand written one.
setOutputFlags = false;
2023-06-15 13:49:13 +00:00
configureFlags = [
"--includedir=${placeholder "dev"}/include"
"--mandir=${placeholder "man"}/share/man"
];
2020-10-27 00:33:43 +00:00
# Doesn't recognize platform flags
configurePlatforms = [];
outputs = [ "out" "bin" "dev" "man" ];
postInstall = ''
# Copy the examples into $bin. Most reverse dependency of this package should
# reference only the $out output
mkdir -p $bin/bin
cp ./examples/io_uring-cp examples/io_uring-test $bin/bin
cp ./examples/link-cp $bin/bin/io_uring-link-cp
'' + lib.optionalString stdenv.hostPlatform.isGnu ''
cp ./examples/ucontext-cp $bin/bin/io_uring-ucontext-cp
'';
meta = with lib; {
description = "Userspace library for the Linux io_uring API";
homepage = "https://git.kernel.dk/cgit/liburing/";
license = licenses.lgpl21;
platforms = platforms.linux;
2023-06-15 13:51:02 +00:00
maintainers = with maintainers; [ thoughtpolice nickcao ];
};
}