2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl }:
|
2004-09-26 18:12:51 +00:00
|
|
|
|
2009-05-14 14:42:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nasm";
|
2022-12-22 16:43:24 +00:00
|
|
|
version = "2.16.01";
|
2014-11-20 16:58:10 +00:00
|
|
|
|
2020-10-23 22:12:18 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${pname}-${version}.tar.xz";
|
2022-12-22 16:43:24 +00:00
|
|
|
sha256 = "sha256-x3dF9IAjde/u4uxcCta38DfqnIfJKxSaljf/CZ8WJVg=";
|
2009-05-14 14:42:20 +00:00
|
|
|
};
|
|
|
|
|
2020-10-23 22:12:18 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2019-02-14 13:51:47 +00:00
|
|
|
|
2020-10-23 22:12:18 +00:00
|
|
|
enableParallelBuilding = true;
|
2017-10-01 23:29:14 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-10-23 22:12:18 +00:00
|
|
|
make golden
|
|
|
|
make test
|
2017-10-01 23:29:14 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.nasm.us/";
|
2009-05-14 14:42:20 +00:00
|
|
|
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
|
2014-11-19 07:40:18 +00:00
|
|
|
platforms = platforms.unix;
|
2017-08-25 12:42:40 +00:00
|
|
|
maintainers = with maintainers; [ pSub willibutz ];
|
2018-08-06 10:39:39 +00:00
|
|
|
license = licenses.bsd2;
|
2004-09-26 18:12:51 +00:00
|
|
|
};
|
|
|
|
}
|