liburing: install all examples

This commit is contained in:
Nick Cao
2024-06-16 10:47:23 -04:00
parent 801bbb1aa2
commit 7db1dff736
@@ -34,17 +34,13 @@ stdenv.mkDerivation rec {
"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
'';
postInstall = ''
# 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";