mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
ab1486ac1d
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.
21 lines
538 B
Nix
21 lines
538 B
Nix
{lib, stdenv, fetchurl, buildPackages}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "yasm";
|
|
version = "1.3.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.tortall.net/projects/yasm/releases/yasm-${version}.tar.gz";
|
|
sha256 = "0gv0slmm0qpq91za3v2v9glff3il594x5xsrbgab7xcmnh0ndkix";
|
|
};
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.tortall.net/projects/yasm/";
|
|
description = "Complete rewrite of the NASM assembler";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|