mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
729c7fb1c8
Fixes CVE-2020-18974. https://nasm.us/doc/nasmdocc.html
31 lines
705 B
Nix
31 lines
705 B
Nix
{ lib, stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nasm";
|
|
version = "2.16.01";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-x3dF9IAjde/u4uxcCta38DfqnIfJKxSaljf/CZ8WJVg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
make golden
|
|
make test
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.nasm.us/";
|
|
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub willibutz ];
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|