Merge pull request #60027 from thoughtpolice/nixpkgs/liburing

liburing: init at 1.0.0pre821_39e0ebd
This commit is contained in:
Austin Seipp 2019-04-22 12:03:41 -05:00 committed by GitHub
commit 9b1706eb06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ stdenv, fetchgit
}:
stdenv.mkDerivation rec {
name = "liburing-${version}";
version = "1.0.0pre821_${builtins.substring 0 7 src.rev}";
src = fetchgit {
url = "http://git.kernel.dk/liburing";
rev = "39e0ebd4fc66046bf733a47aaa899a556093ebc6";
sha256 = "00c72fizxmwxd2jzmlzi4l82cw7h75lfpkkwzwcjpw9zdg9w0ci7";
};
enableParallelBuilding = true;
outputs = [ "out" "lib" "dev" "man" ];
installFlags =
[ "prefix=$(out)"
"includedir=$(dev)/include"
"libdir=$(lib)/lib"
];
# Copy the examples into $out and man pages into $man. This should be handled
# by the build system in the future and submitted upstream.
postInstall = ''
mkdir -p $out/bin $man/share/man/man2/
cp -R ./man/* $man/share/man/man2
cp ./examples/io_uring-cp examples/io_uring-test $out/bin
'';
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 ];
badPlatforms = [ "aarch64-linux" ];
};
}

View file

@ -11155,6 +11155,8 @@ in
libiio = callPackage ../development/libraries/libiio { };
liburing = callPackage ../development/libraries/liburing { };
libseccomp = callPackage ../development/libraries/libseccomp { };
libsecret = callPackage ../development/libraries/libsecret { };