mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
ats-acc: fix build
This commit is contained in:
parent
df931c41b4
commit
cbee9d7965
@ -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:
|
||||
|
@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-Wp39488YNL40GKp4KaJwhi75PsYP+gMtrZqAvs4Q/sw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "mv acc \''$(PATSHOME)/bin/" "install -Dm755 acc ${placeholder "out"}/bin/"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ ats2 ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user