Skip to content

Commit

Permalink
Merge pull request #101505 from TredwellGit/nasm
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliButz committed Oct 26, 2020
2 parents 1111911 + 3b7f2b0 commit c48a9a6
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions pkgs/development/compilers/nasm/default.nix
@@ -1,27 +1,25 @@
{ stdenv, fetchFromRepoOrCz, autoreconfHook, perl, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }:
{ stdenv, fetchurl, perl }:

stdenv.mkDerivation rec {
pname = "nasm";
version = "2.14.02";
version = "2.15.05";

src = fetchFromRepoOrCz {
repo = "nasm";
rev = "${pname}-${version}";
sha256 = "15z6ybnzlsrqs2964h6czqhpmr7vc3ln4y4h0z9vrznk4mqcwbsa";
src = fetchurl {
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${pname}-${version}.tar.xz";
sha256 = "0gqand86b0r86k3h46dh560lykxmxqqywz5m55kgjfq7q4lngbrw";
};

nativeBuildInputs = [ autoreconfHook perl asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ];
nativeBuildInputs = [ perl ];

postBuild = "make manpages";
enableParallelBuilding = true;

doCheck = true;

checkPhase = ''
make golden && make test
make golden
make test
'';

NIX_CFLAGS_COMPILE="-Wno-error=attributes";

meta = with stdenv.lib; {
homepage = "https://www.nasm.us/";
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
Expand Down

0 comments on commit c48a9a6

Please sign in to comment.