nixpkgs/pkgs/development/compilers/fasm/bin.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
751 B
Nix
Raw Normal View History

2018-11-15 13:20:00 +00:00
{ stdenvNoCC, lib, fetchurl }:
stdenvNoCC.mkDerivation (finalAttrs: {
2019-08-31 11:41:23 +00:00
pname = "fasm-bin";
2023-12-05 07:03:14 +00:00
version = "1.73.32";
2018-11-15 13:20:00 +00:00
src = fetchurl {
url = "https://flatassembler.net/fasm-${finalAttrs.version}.tgz";
hash = "sha256-WVXL4UNWXa9e7K3MSS0CXK3lczgog9V4XUoYChvvym8=";
2018-11-15 13:20:00 +00:00
};
installPhase = ''
runHook preInstall
2018-11-15 13:20:00 +00:00
install -D fasm${lib.optionalString stdenvNoCC.isx86_64 ".x64"} $out/bin/fasm
runHook postInstall
2018-11-15 13:20:00 +00:00
'';
meta = {
2018-11-15 13:20:00 +00:00
description = "x86(-64) macro assembler to binary, MZ, PE, COFF, and ELF";
2020-04-12 09:56:50 +00:00
homepage = "https://flatassembler.net/download.php";
license = lib.licenses.bsd2;
mainProgram = "fasm";
maintainers = with lib.maintainers; [ orivej ];
2018-11-15 13:20:00 +00:00
platforms = [ "i686-linux" "x86_64-linux" ];
};
})