2020-04-24 23:36:52 +00:00
|
|
|
{ stdenvNoCC, lib, fetchurl }:
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "fasm-bin";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.73.32";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-02 11:29:13 +00:00
|
|
|
url = "https://flatassembler.net/fasm-${finalAttrs.version}.tgz";
|
|
|
|
hash = "sha256-WVXL4UNWXa9e7K3MSS0CXK3lczgog9V4XUoYChvvym8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-01-02 11:29:13 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
install -D fasm${lib.optionalString stdenvNoCC.isx86_64 ".x64"} $out/bin/fasm
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "x86(-64) macro assembler to binary, MZ, PE, COFF, and ELF";
|
|
|
|
homepage = "https://flatassembler.net/download.php";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
mainProgram = "fasm";
|
|
|
|
maintainers = with lib.maintainers; [ orivej ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|