2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv, fetchurl, perl }:
|
2004-09-26 20:12:51 +02:00
|
|
|
|
2009-05-14 16:42:20 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "nasm";
|
2020-10-24 00:12:18 +02:00
|
|
|
version = "2.15.05";
|
2014-11-20 17:58:10 +01:00
|
|
|
|
2020-10-24 00:12:18 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0gqand86b0r86k3h46dh560lykxmxqqywz5m55kgjfq7q4lngbrw";
|
2009-05-14 16:42:20 +02:00
|
|
|
};
|
|
|
|
|
2020-10-24 00:12:18 +02:00
|
|
|
nativeBuildInputs = [ perl ];
|
2019-02-14 14:51:47 +01:00
|
|
|
|
2020-10-24 00:12:18 +02:00
|
|
|
enableParallelBuilding = true;
|
2017-10-02 01:29:14 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-10-24 00:12:18 +02:00
|
|
|
make golden
|
|
|
|
make test
|
2017-10-02 01:29:14 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +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 ];
|
2018-08-06 12:39:39 +02:00
|
|
|
license = licenses.bsd2;
|
2004-09-26 20:12:51 +02:00
|
|
|
};
|
|
|
|
}
|