1{ lib, stdenv, fetchurl, perl }:
2
3stdenv.mkDerivation rec {
4 pname = "nasm";
5 version = "2.16.01";
6
7 src = fetchurl {
8 url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${pname}-${version}.tar.xz";
9 sha256 = "sha256-x3dF9IAjde/u4uxcCta38DfqnIfJKxSaljf/CZ8WJVg=";
10 };
11
12 nativeBuildInputs = [ perl ];
13
14 enableParallelBuilding = true;
15
16 doCheck = true;
17
18 checkPhase = ''
19 make golden
20 make test
21 '';
22
23 meta = with lib; {
24 homepage = "https://www.nasm.us/";
25 description = "An 80x86 and x86-64 assembler designed for portability and modularity";
26 platforms = platforms.unix;
27 maintainers = with maintainers; [ pSub willibutz ];
28 license = licenses.bsd2;
29 };
30}