nixpkgs/pkgs/development/libraries/liburing/default.nix
Austin Seipp 9d0cdc0b28
liburing: 1.0.0pre137_91dde5c9 -> 1.0.0pre150_93f3e8d5
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-07-14 11:25:53 -05:00

42 lines
1.1 KiB
Nix

{ stdenv, fetchgit
}:
stdenv.mkDerivation rec {
name = "liburing-${version}";
version = "1.0.0pre150_${builtins.substring 0 7 src.rev}";
src = fetchgit {
url = "http://git.kernel.dk/liburing";
rev = "93f3e8d511e53133a4367afe04b5f256073082a0";
sha256 = "14ndx3z0q6gynkmlwiah6775ss0p1xmjgn428gqgbsganiyhkwgp";
};
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
'';
meta = with stdenv.lib; {
description = "Userspace library for the Linux io_uring API";
homepage = http://git.kernel.dk/cgit/liburing/;
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = with maintainers; [ thoughtpolice ];
};
}