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

50 lines
949 B
Nix
Raw Normal View History

2024-06-30 08:12:46 +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 {
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${pname}-${version}.tar.xz";
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/";
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
platforms = platforms.unix;
2024-06-30 08:12:46 +00:00
maintainers = with maintainers; [
pSub
willibutz
];
2024-05-02 00:46:19 +00:00
license = licenses.bsd2;
};
}