aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/liburing
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2019-04-22 10:42:23 -0500
committerAustin Seipp <aseipp@pobox.com>2019-04-22 11:18:18 -0500
commit52714f495c73c876cddbc5663e405d393ed71483 (patch)
treea9a47b6fad5ec2e45cb09813d3618ad37d97650f /pkgs/development/libraries/liburing
parent63d0a1b8e71d39457bbb280cb29ad1135cc3b102 (diff)
liburing: init at 1.0.0pre821_39e0ebd
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/development/libraries/liburing')
-rw-r--r--pkgs/development/libraries/liburing/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/libraries/liburing/default.nix b/pkgs/development/libraries/liburing/default.nix
new file mode 100644
index 000000000000..143919d148e5
--- /dev/null
+++ b/pkgs/development/libraries/liburing/default.nix
@@ -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" ];
+ };
+}