2019-02-14 13:51:47 +00:00
|
|
|
{ stdenv, fetchFromRepoOrCz, autoreconfHook, perl, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }:
|
2004-09-26 19:12:51 +01:00
|
|
|
|
2009-05-14 15:42:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nasm";
|
2018-12-29 17:29:59 +00:00
|
|
|
version = "2.14.02";
|
2014-11-20 16:58:10 +00:00
|
|
|
|
2019-02-14 13:51:47 +00:00
|
|
|
src = fetchFromRepoOrCz {
|
|
|
|
repo = "nasm";
|
2019-08-15 13:41:18 +01:00
|
|
|
rev = "${pname}-${version}";
|
2019-02-14 13:51:47 +00:00
|
|
|
sha256 = "15z6ybnzlsrqs2964h6czqhpmr7vc3ln4y4h0z9vrznk4mqcwbsa";
|
2009-05-14 15:42:20 +01:00
|
|
|
};
|
|
|
|
|
2019-02-14 13:51:47 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook perl asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ];
|
|
|
|
|
|
|
|
postBuild = "make manpages";
|
2017-10-02 00:29:14 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
make golden && make test
|
|
|
|
'';
|
|
|
|
|
2018-05-13 13:14:09 +01:00
|
|
|
NIX_CFLAGS_COMPILE="-Wno-error=attributes";
|
|
|
|
|
2014-11-19 07:40:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.nasm.us/";
|
2009-05-14 15:42:20 +01: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 13:42:40 +01:00
|
|
|
maintainers = with maintainers; [ pSub willibutz ];
|
2018-08-06 11:39:39 +01:00
|
|
|
license = licenses.bsd2;
|
2004-09-26 19:12:51 +01:00
|
|
|
};
|
|
|
|
}
|