nixpkgs/pkgs/development/compilers/nasm/default.nix
Jan Malakhovski 01d74a5382 nasm: build from source
https://nasm.us is currently down. This way is also preferable, IMHO.
2019-02-14 13:51:47 +00:00

31 lines
799 B
Nix

{ stdenv, fetchFromRepoOrCz, autoreconfHook, perl, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }:
stdenv.mkDerivation rec {
name = "nasm-${version}";
version = "2.14.02";
src = fetchFromRepoOrCz {
repo = "nasm";
rev = name;
sha256 = "15z6ybnzlsrqs2964h6czqhpmr7vc3ln4y4h0z9vrznk4mqcwbsa";
};
nativeBuildInputs = [ autoreconfHook perl asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ];
postBuild = "make manpages";
doCheck = true;
checkPhase = ''
make golden && make test
'';
meta = with stdenv.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;
};
}