From ab1486ac1d4f346ded1340e585f1f554f739d647 Mon Sep 17 00:00:00 2001 From: Daniel Wagenknecht Date: Sat, 4 Dec 2021 20:10:25 +0100 Subject: [PATCH] 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. --- pkgs/development/compilers/yasm/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/yasm/default.nix b/pkgs/development/compilers/yasm/default.nix index b770f3b7dfd..58b8252729a 100644 --- a/pkgs/development/compilers/yasm/default.nix +++ b/pkgs/development/compilers/yasm/default.nix @@ -1,4 +1,4 @@ -{lib, stdenv, fetchurl}: +{lib, stdenv, fetchurl, buildPackages}: stdenv.mkDerivation rec { pname = "yasm"; @@ -9,6 +9,8 @@ stdenv.mkDerivation rec { sha256 = "0gv0slmm0qpq91za3v2v9glff3il594x5xsrbgab7xcmnh0ndkix"; }; + depsBuildBuild = [ buildPackages.stdenv.cc ]; + meta = with lib; { homepage = "http://www.tortall.net/projects/yasm/"; description = "Complete rewrite of the NASM assembler";