2019-04-22 16:42:23 +01:00
|
|
|
{ stdenv, fetchgit
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "liburing-${version}";
|
2019-05-23 20:32:00 +01:00
|
|
|
version = "1.0.0pre118_${builtins.substring 0 7 src.rev}";
|
2019-04-22 16:42:23 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "http://git.kernel.dk/liburing";
|
2019-05-23 20:32:00 +01:00
|
|
|
rev = "2e719820d47cdb48308265f95547d2c9458bbfe7";
|
|
|
|
sha256 = "0sm2k5f15ad9b9wh928kmbb399f5f7frfh96bi865pklavpcckf5";
|
2019-04-22 16:42:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
|
|
|
|
installFlags =
|
|
|
|
[ "prefix=$(out)"
|
|
|
|
"includedir=$(dev)/include"
|
|
|
|
"libdir=$(lib)/lib"
|
liburing: bump, fix version (1.0.0pre92_7b989f3)
I accidentally got the number of commits wrong in the previous
prerelease version string. This is now fixed.
Generally, this would result in functions like builtins.compareVersions
to give incorrect results, so 'nix-env -u' doesn't work. But I'm
justifying it here, because: most people use it as a library, so the
hash change is all that matters. Plus, I only authored this a week or
so ago in upstream, so this change is fast enough that I think people
will be fine with it and can work around, especially since it's
unreleased in any stable channel.
This also bumps the library to the newest version, which contains some
bugfixes, and now installs the manpages into the $man output for us.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-03 01:29:32 +01:00
|
|
|
"mandir=$(man)/share/man"
|
2019-04-22 16:42:23 +01:00
|
|
|
];
|
|
|
|
|
liburing: bump, fix version (1.0.0pre92_7b989f3)
I accidentally got the number of commits wrong in the previous
prerelease version string. This is now fixed.
Generally, this would result in functions like builtins.compareVersions
to give incorrect results, so 'nix-env -u' doesn't work. But I'm
justifying it here, because: most people use it as a library, so the
hash change is all that matters. Plus, I only authored this a week or
so ago in upstream, so this change is fast enough that I think people
will be fine with it and can work around, especially since it's
unreleased in any stable channel.
This also bumps the library to the newest version, which contains some
bugfixes, and now installs the manpages into the $man output for us.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-03 01:29:32 +01:00
|
|
|
# Copy the examples into $out.
|
2019-04-22 16:42:23 +01:00
|
|
|
postInstall = ''
|
liburing: bump, fix version (1.0.0pre92_7b989f3)
I accidentally got the number of commits wrong in the previous
prerelease version string. This is now fixed.
Generally, this would result in functions like builtins.compareVersions
to give incorrect results, so 'nix-env -u' doesn't work. But I'm
justifying it here, because: most people use it as a library, so the
hash change is all that matters. Plus, I only authored this a week or
so ago in upstream, so this change is fast enough that I think people
will be fine with it and can work around, especially since it's
unreleased in any stable channel.
This also bumps the library to the newest version, which contains some
bugfixes, and now installs the manpages into the $man output for us.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-03 01:29:32 +01:00
|
|
|
mkdir -p $out/bin
|
2019-04-22 16:42:23 +01:00
|
|
|
cp ./examples/io_uring-cp examples/io_uring-test $out/bin
|
2019-05-21 16:35:27 +01:00
|
|
|
cp ./examples/link-cp $out/bin/io_uring-link-cp
|
2019-04-22 16:42:23 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|