nixpkgs/pkgs/development/compilers/nasm/default.nix

28 lines
670 B
Nix
Raw Normal View History

2017-10-02 01:29:14 +02:00
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
2014-06-09 03:43:16 +02:00
name = "nasm-${version}";
2018-12-29 18:29:59 +01:00
version = "2.14.02";
2014-11-20 17:58:10 +01:00
src = fetchurl {
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${name}.tar.bz2";
2018-12-29 18:29:59 +01:00
sha256 = "1g409sr1kj7v1089s9kv0i4azvddkcwcypnbakfryyi71b3jdz9l";
};
2017-10-02 01:29:14 +02:00
nativeBuildInputs = [ perl ];
doCheck = true;
checkPhase = ''
make golden && make test
'';
meta = with stdenv.lib; {
2018-06-23 13:34:55 +02:00
homepage = https://www.nasm.us/;
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
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;
};
}