2017-10-01 23:29:14 +00:00
|
|
|
{ stdenv, fetchurl, perl }:
|
2004-09-26 18:12:51 +00:00
|
|
|
|
2009-05-14 14:42:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-06-09 01:43:16 +00:00
|
|
|
name = "nasm-${version}";
|
2018-11-09 13:22:37 +00:00
|
|
|
version = "2.14";
|
2014-11-20 16:58:10 +00:00
|
|
|
|
2004-09-26 18:12:51 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${name}.tar.bz2";
|
2018-11-09 13:22:37 +00:00
|
|
|
sha256 = "0i678zbm1ljn5jwia7gj1n503izwvzlh55xzm4i0qgfmr8kzsg6l";
|
2009-05-14 14:42:20 +00:00
|
|
|
};
|
|
|
|
|
2017-10-01 23:29:14 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
make golden && make test
|
|
|
|
'';
|
|
|
|
|
2014-11-19 07:40:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-06-23 11:34:55 +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
|
|
|
};
|
|
|
|
}
|