summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/ats2
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-02 14:44:38 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-02 14:44:38 +0100
commitcbee9d7965197fc1452c70407253410316624c69 (patch)
tree5bde8fbdbd621ea2d41cc68079e69a2416d593a8 /pkgs/development/compilers/ats2
parentdf931c41b42acc7bcd8436a59c693e4449ff752e (diff)
ats-acc: fix build
Diffstat (limited to 'pkgs/development/compilers/ats2')
-rw-r--r--pkgs/development/compilers/ats2/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ats2/default.nix b/pkgs/development/compilers/ats2/default.nix
index a5c4f00f0f5e..f9ba2e1ac417 100644
--- a/pkgs/development/compilers/ats2/default.nix
+++ b/pkgs/development/compilers/ats2/default.nix
@@ -34,6 +34,10 @@ stdenv.mkDerivation rec {
hash = "sha256-UWgDjFojPBYgykrCrJyYvVWY+Gc5d4aRGjTWjc528AM=";
};
+ postPatch = lib.optionalString stdenv.cc.isClang ''
+ sed -i 's/gcc/clang/g' utils/*/DATS/atscc_util.dats
+ '';
+
buildInputs = [ gmp ];
# Disable parallel build, errors: