2017-10-02 01:29:14 +02:00
|
|
|
{ stdenv, fetchurl, perl }:
|
2004-09-26 20:12:51 +02:00
|
|
|
|
2009-05-14 16:42:20 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-06-09 03:43:16 +02:00
|
|
|
name = "nasm-${version}";
|
2018-02-27 16:57:18 +01:00
|
|
|
version = "2.13.03";
|
2014-11-20 17:58:10 +01:00
|
|
|
|
2004-09-26 20:12:51 +02:00
|
|
|
src = fetchurl {
|
2014-06-09 03:43:16 +02:00
|
|
|
url = "http://www.nasm.us/pub/nasm/releasebuilds/${version}/${name}.tar.bz2";
|
2018-02-27 16:57:18 +01:00
|
|
|
sha256 = "04bh736zfj3xy5ihh1whshpjxsisv7hqkz954clzdw6kg93qdv33";
|
2009-05-14 16:42:20 +02:00
|
|
|
};
|
|
|
|
|
2017-10-02 01:29:14 +02:00
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
make golden && make test
|
|
|
|
'';
|
|
|
|
|
2014-11-19 08:40:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-06-23 13:34:55 +02:00
|
|
|
homepage = https://www.nasm.us/;
|
2009-05-14 16:42:20 +02:00
|
|
|
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
|
2014-11-19 08:40:18 +01:00
|
|
|
platforms = platforms.unix;
|
2017-08-25 14:42:40 +02:00
|
|
|
maintainers = with maintainers; [ pSub willibutz ];
|
2004-09-26 20:12:51 +02:00
|
|
|
};
|
|
|
|
}
|