summary refs log tree commit diff
diff options
context:
space:
mode:
authorGaelan Steele <gbs@canishe.com>2022-01-07 23:43:14 +0000
committerAustin Seipp <aseipp@pobox.com>2022-01-11 10:22:35 -0600
commit53c7536da064efd9ee7bc85ef9f188b37d2a8818 (patch)
treee717086d94810c0ce824ce7c18e3f07e9f5aa371
parent0c10d0dcf160bd32d331ff59e839a6157bec6602 (diff)
downloadnixpkgs-53c7536da064efd9ee7bc85ef9f188b37d2a8818.tar
nixpkgs-53c7536da064efd9ee7bc85ef9f188b37d2a8818.tar.gz
nixpkgs-53c7536da064efd9ee7bc85ef9f188b37d2a8818.tar.bz2
nixpkgs-53c7536da064efd9ee7bc85ef9f188b37d2a8818.tar.lz
nixpkgs-53c7536da064efd9ee7bc85ef9f188b37d2a8818.tar.xz
nixpkgs-53c7536da064efd9ee7bc85ef9f188b37d2a8818.tar.zst
nixpkgs-53c7536da064efd9ee7bc85ef9f188b37d2a8818.zip
liburing: fix build on armv6l
-rw-r--r--pkgs/development/libraries/liburing/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/libraries/liburing/default.nix b/pkgs/development/libraries/liburing/default.nix
index 97a0ebda18d..16fadb151bd 100644
--- a/pkgs/development/libraries/liburing/default.nix
+++ b/pkgs/development/libraries/liburing/default.nix
@@ -4,7 +4,7 @@
 
 stdenv.mkDerivation rec {
   pname = "liburing";
-  version = "2.1";
+  version = "2.1"; # remove patch when updating
 
   src = fetchgit {
     url    = "http://git.kernel.dk/${pname}";
@@ -43,6 +43,15 @@ stdenv.mkDerivation rec {
     cp ./examples/ucontext-cp $bin/bin/io_uring-ucontext-cp
   '';
 
+  # fix for compilation on 32-bit ARM, merged by upstream but not released; remove when
+  # upstream releases an update
+  patches = lib.optional stdenv.isAarch32 [
+    (fetchpatch {
+      url = "https://patch-diff.githubusercontent.com/raw/axboe/liburing/pull/433.patch";
+      sha256 = "sha256-qQEQXYm5mkws2klLxwuuoPSPRkpP1s6tuylAAEp7+9E=";
+    })
+  ];
+
   meta = with lib; {
     description = "Userspace library for the Linux io_uring API";
     homepage    = "https://git.kernel.dk/cgit/liburing/";