nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 43 lines 1.1 kB view raw
1{ stdenv, fetchgit 2, fetchpatch 3}: 4 5stdenv.mkDerivation rec { 6 pname = "liburing"; 7 version = "0.7"; 8 9 src = fetchgit { 10 url = "http://git.kernel.dk/${pname}"; 11 rev = "liburing-${version}"; 12 sha256 = "15z44l7y4c6s6dlf7v8lq4znlsjbja2r4ifbni0l8cdcnq0w3zh3"; 13 }; 14 15 separateDebugInfo = true; 16 enableParallelBuilding = true; 17 18 outputs = [ "out" "lib" "dev" "man" ]; 19 20 configurePhase = '' 21 ./configure \ 22 --prefix=$out \ 23 --includedir=$dev/include \ 24 --libdir=$lib/lib \ 25 --mandir=$man/share/man \ 26 ''; 27 28 # Copy the examples into $out. 29 postInstall = '' 30 mkdir -p $out/bin 31 cp ./examples/io_uring-cp examples/io_uring-test $out/bin 32 cp ./examples/link-cp $out/bin/io_uring-link-cp 33 cp ./examples/ucontext-cp $out/bin/io_uring-ucontext-cp 34 ''; 35 36 meta = with stdenv.lib; { 37 description = "Userspace library for the Linux io_uring API"; 38 homepage = "https://git.kernel.dk/cgit/liburing/"; 39 license = licenses.lgpl21; 40 platforms = platforms.linux; 41 maintainers = with maintainers; [ thoughtpolice ]; 42 }; 43}