core/pkgs/by-name/na/nasm/default.nix

43 lines
934 B
Nix
Raw Normal View History

2024-05-13 21:24:10 +00:00
{ lib, stdenv, fetchurl, perl, gitUpdater }:
2024-05-02 00:46:19 +00:00
stdenv.mkDerivation rec {
pname = "nasm";
version = "2.16.02";
src = fetchurl {
2024-05-13 21:24:10 +00:00
url =
"https://www.nasm.us/pub/nasm/releasebuilds/${version}/${pname}-${version}.tar.xz";
2024-05-02 00:46:19 +00:00
sha256 = "sha256-HhuULqiPIu2uiWWeFb4m+gJ+rgdH9RQTVA9S1OrEeQ0=";
};
nativeBuildInputs = [ perl ];
enableParallelBuilding = true;
doCheck = true;
checkPhase = ''
runHook preCheck
make golden
make test
runHook postCheck
'';
passthru.updateScript = gitUpdater {
url = "https://github.com/netwide-assembler/nasm.git";
rev-prefix = "nasm-";
ignoredVersions = "rc.*";
};
meta = with lib; {
homepage = "https://www.nasm.us/";
2024-05-13 21:24:10 +00:00
description =
"An 80x86 and x86-64 assembler designed for portability and modularity";
2024-05-02 00:46:19 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ pSub willibutz ];
license = licenses.bsd2;
};
}