yasm: fix cross build

Yasm needs a compiler for the build host available for building the
internal 'genperf' tool.

This fixes cross-compiling yasm. Tested by compiling yasm for
aarch64 on x86_64.
This commit is contained in:
Daniel Wagenknecht 2021-12-04 20:10:25 +01:00
parent 3995cabfbe
commit ab1486ac1d

View file

@ -1,4 +1,4 @@
{lib, stdenv, fetchurl}: {lib, stdenv, fetchurl, buildPackages}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "yasm"; pname = "yasm";
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "0gv0slmm0qpq91za3v2v9glff3il594x5xsrbgab7xcmnh0ndkix"; sha256 = "0gv0slmm0qpq91za3v2v9glff3il594x5xsrbgab7xcmnh0ndkix";
}; };
depsBuildBuild = [ buildPackages.stdenv.cc ];
meta = with lib; { meta = with lib; {
homepage = "http://www.tortall.net/projects/yasm/"; homepage = "http://www.tortall.net/projects/yasm/";
description = "Complete rewrite of the NASM assembler"; description = "Complete rewrite of the NASM assembler";