From ac2f55b3ffca761e6d326e689739ecd8397d4c02 Mon Sep 17 00:00:00 2001 From: occheung Date: Mon, 8 Nov 2021 16:55:29 +0800 Subject: [PATCH] flake: patch llvmlite --- flake.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a43321d0e..fe46d4cd7 100644 --- a/flake.nix +++ b/flake.nix @@ -102,11 +102,18 @@ llvmlite-new = pkgs.python3Packages.buildPythonPackage rec { pname = "llvmlite"; - version = "0.37.0rc2"; + version = "0.37.0-artiq"; src = pkgs.python3Packages.fetchPypi { - inherit pname version; - sha256 = "sha256-F1quz+76JOt1jaQPVzdKe7RfN6gWG2lyE82qTvgyY/c="; + inherit pname; + version = "0.37.0"; + sha256 = "sha256-Y5K4cM0BjsDGRda7uRjWqg7sqMYmdLqu4whi1raGWxU="; }; + patches = [ + (pkgs.fetchurl { + url = "https://git.m-labs.hk/M-Labs/nix-scripts/raw/branch/master/artiq-fast/pkgs/llvmlite-abiname.diff"; + sha256 = "1zlss9vlhjgch6gf5gc0647kkjdwjk0833ld88xwd9vmwvkdmp3v"; + }) + ]; nativeBuildInputs = [ pkgs.llvm_11 ]; # Disable static linking # https://github.com/numba/llvmlite/issues/93