zchaff: use clangStdenv

Fixes build on Linux
This commit is contained in:
Ben Siraphob 2022-05-21 16:33:35 -07:00
parent 3c31489f15
commit 519f0b9e58
No known key found for this signature in database
GPG Key ID: 45F0E5D788143267

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl }:
{ lib, clangStdenv, fetchurl }:
stdenv.mkDerivation rec {
clangStdenv.mkDerivation rec {
pname = "zchaff";
version = "2004.5.13";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
};
patches = [ ./sat_solver.patch ];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ];
makeFlags = [ "CC=${clangStdenv.cc.targetPrefix}c++" ];
installPhase= ''
runHook preInstall
install -Dm755 -t $out/bin zchaff