Merge pull request #308139 from NickCao/liburing

liburing: 2.5 -> 2.6
This commit is contained in:
Nick Cao
2024-06-16 20:47:18 -04:00
committed by GitHub
+30 -19
View File
@@ -1,13 +1,18 @@
{ lib, stdenv, fetchgit }:
{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "liburing";
version = "2.5";
version = "2.6";
src = fetchgit {
url = "http://git.kernel.dk/${pname}";
rev = "liburing-${version}";
sha256 = "sha256-hPyEZ0P1rfos53OCNd2OYFiqmv6TgpWaj5/xPLccCvM=";
src = fetchFromGitHub {
owner = "axboe";
repo = "liburing";
rev = "refs/tags/liburing-${version}";
hash = "sha256-UOhnFT4UKZmPchKxew3vYeKH2oETDVylE1RmJ2hnLq0=";
};
separateDebugInfo = true;
@@ -20,25 +25,31 @@ stdenv.mkDerivation rec {
];
# Doesn't recognize platform flags
configurePlatforms = [];
configurePlatforms = [ ];
outputs = [ "out" "bin" "dev" "man" ];
outputs = [
"out"
"bin"
"dev"
"man"
];
postInstall = ''
# Copy the examples into $bin. Most reverse dependency of this package should
# reference only the $out output
mkdir -p $bin/bin
cp ./examples/io_uring-cp examples/io_uring-test $bin/bin
cp ./examples/link-cp $bin/bin/io_uring-link-cp
'' + lib.optionalString stdenv.hostPlatform.isGnu ''
cp ./examples/ucontext-cp $bin/bin/io_uring-ucontext-cp
# Copy the examples into $bin. Most reverse dependency of
# this package should reference only the $out output
for file in $(find ./examples -executable -type f); do
install -Dm555 -t "$bin/bin" "$file"
done
'';
meta = with 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 nickcao ];
homepage = "https://github.com/axboe/liburing";
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = with maintainers; [
thoughtpolice
nickcao
];
};
}