3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/nasm/default.nix

33 lines
853 B
Nix
Raw Normal View History

{ stdenv, fetchFromRepoOrCz, autoreconfHook, perl, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }:
stdenv.mkDerivation rec {
pname = "nasm";
2018-12-29 17:29:59 +00:00
version = "2.14.02";
2014-11-20 16:58:10 +00:00
src = fetchFromRepoOrCz {
repo = "nasm";
rev = "${pname}-${version}";
sha256 = "15z6ybnzlsrqs2964h6czqhpmr7vc3ln4y4h0z9vrznk4mqcwbsa";
};
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
'';
NIX_CFLAGS_COMPILE="-Wno-error=attributes";
meta = with stdenv.lib; {
2018-06-23 12:34:55 +01:00
homepage = https://www.nasm.us/;
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
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;
};
}