2017-10-02 00:29:14 +01:00
|
|
|
{ stdenv, fetchurl, perl }:
|
2004-09-26 19:12:51 +01:00
|
|
|
|
2009-05-14 15:42:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-06-09 02:43:16 +01:00
|
|
|
name = "nasm-${version}";
|
2017-12-03 15:00:19 +00:00
|
|
|
version = "2.13.02";
|
2014-11-20 16:58:10 +00:00
|
|
|
|
2004-09-26 19:12:51 +01:00
|
|
|
src = fetchurl {
|
2014-06-09 02:43:16 +01:00
|
|
|
url = "http://www.nasm.us/pub/nasm/releasebuilds/${version}/${name}.tar.bz2";
|
2017-12-03 15:00:19 +00:00
|
|
|
sha256 = "1gmvjckxvkmx1kbglgrakc98qhy55xlqlk5flrdihz5yhv92hc4d";
|
2009-05-14 15:42:20 +01:00
|
|
|
};
|
|
|
|
|
2017-10-02 00:29:14 +01:00
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
make golden && make test
|
|
|
|
'';
|
|
|
|
|
2014-11-19 07:40:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2009-05-14 15:42:20 +01:00
|
|
|
homepage = http://www.nasm.us/;
|
|
|
|
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 13:42:40 +01:00
|
|
|
maintainers = with maintainers; [ pSub willibutz ];
|
2004-09-26 19:12:51 +01:00
|
|
|
};
|
|
|
|
}
|