mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
46 lines
921 B
Nix
46 lines
921 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, perl
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nasm";
|
|
version = "2.16.03";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${pname}-${version}.tar.xz";
|
|
hash = "sha256-FBKhx2C70F2wJrbA0WV6/9ZjHNCmPN229zzG1KphYUg=";
|
|
};
|
|
|
|
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 = "80x86 and x86-64 assembler designed for portability and modularity";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub willibutz ];
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|