1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/liburing/default.nix
Austin Seipp c7c57b9f84
liburing: 0.2 -> 0.4pre514_2454d630
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2020-02-13 17:51:39 -06:00

44 lines
1.1 KiB
Nix

{ stdenv, fetchgit
, fetchpatch
}:
stdenv.mkDerivation rec {
pname = "liburing";
version = "0.4pre514_${builtins.substring 0 8 src.rev}";
src = fetchgit {
url = "http://git.kernel.dk/${pname}";
rev = "2454d6301d83a714d0775662b512fd46dbf82a0d";
sha256 = "0qdycr0w0rymnizc4p5rh2qcnzr05afris4ggaawdg4zr07jms7k";
};
separateDebugInfo = true;
enableParallelBuilding = true;
outputs = [ "out" "lib" "dev" "man" ];
configurePhase = ''
./configure \
--prefix=$out \
--includedir=$dev/include \
--libdir=$lib/lib \
--mandir=$man/share/man \
'';
# Copy the examples into $out.
postInstall = ''
mkdir -p $out/bin
cp ./examples/io_uring-cp examples/io_uring-test $out/bin
cp ./examples/link-cp $out/bin/io_uring-link-cp
cp ./examples/ucontext-cp $out/bin/io_uring-ucontext-cp
'';
meta = with stdenv.lib; {
description = "Userspace library for the Linux io_uring API";
homepage = https://git.kernel.dk/cgit/liburing/;
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = with maintainers; [ thoughtpolice ];
};
}