about summary refs log tree commit diff
path: root/pkgs/development/libraries/cl
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-18 18:39:59 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-18 18:39:59 +0200
commit7f5a37392dc4d7645f412e8ce256b7aadf4a173e (patch)
treec34cfba5d36ecbdfb8aad49dba1fee4eda9aa95d /pkgs/development/libraries/cl
parentd0781217d24406fb2217cab28f17163cf1badf19 (diff)
downloadnixlib-7f5a37392dc4d7645f412e8ce256b7aadf4a173e.tar
nixlib-7f5a37392dc4d7645f412e8ce256b7aadf4a173e.tar.gz
nixlib-7f5a37392dc4d7645f412e8ce256b7aadf4a173e.tar.bz2
nixlib-7f5a37392dc4d7645f412e8ce256b7aadf4a173e.tar.lz
nixlib-7f5a37392dc4d7645f412e8ce256b7aadf4a173e.tar.xz
nixlib-7f5a37392dc4d7645f412e8ce256b7aadf4a173e.tar.zst
nixlib-7f5a37392dc4d7645f412e8ce256b7aadf4a173e.zip
cl, wings: unbreak on aarch64-linux
Diffstat (limited to 'pkgs/development/libraries/cl')
-rw-r--r--pkgs/development/libraries/cl/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/libraries/cl/default.nix b/pkgs/development/libraries/cl/default.nix
index a4b526ea25d3..1f98635f15dd 100644
--- a/pkgs/development/libraries/cl/default.nix
+++ b/pkgs/development/libraries/cl/default.nix
@@ -1,4 +1,4 @@
-{lib, stdenv, fetchFromGitHub, rebar, erlang, opencl-headers, ocl-icd }:
+{ lib, stdenv, fetchFromGitHub, rebar, erlang, opencl-headers, ocl-icd }:
 
 stdenv.mkDerivation rec {
   version = "1.2.4";
@@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
     sha256 = "1gwkjl305a0231hz3k0w448dsgbgdriaq764sizs5qfn59nzvinz";
   };
 
+  # https://github.com/tonyrog/cl/issues/39
+  postPatch = ''
+    substituteInPlace c_src/Makefile \
+      --replace "-m64" ""
+  '';
+
   buildInputs = [ erlang rebar opencl-headers ocl-icd ];
 
   buildPhase = ''
@@ -29,8 +35,6 @@ stdenv.mkDerivation rec {
     homepage = "https://github.com/tonyrog/cl";
     description = "OpenCL binding for Erlang";
     license = licenses.mit;
-    # https://github.com/tonyrog/cl/issues/39
-    broken = stdenv.isAarch64;
     platforms = platforms.linux;
   };
 }