nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 36 lines 832 B view raw
1{ 2 stdenvNoCC, 3 lib, 4 fetchurl, 5}: 6 7stdenvNoCC.mkDerivation (finalAttrs: { 8 pname = "fasm-bin"; 9 version = "1.73.34"; 10 11 src = fetchurl { 12 url = "https://flatassembler.net/fasm-${finalAttrs.version}.tgz"; 13 hash = "sha256-CAlGTsfvpDRWsHh9UysgBorjX+mygEWjFeRaznyDszw="; 14 }; 15 16 installPhase = '' 17 runHook preInstall 18 19 install -D fasm${lib.optionalString stdenvNoCC.hostPlatform.isx86_64 ".x64"} $out/bin/fasm 20 21 runHook postInstall 22 ''; 23 24 meta = { 25 description = "x86(-64) macro assembler to binary, MZ, PE, COFF, and ELF"; 26 homepage = "https://flatassembler.net/"; 27 downloadPage = "https://flatassembler.net/download.php"; 28 license = lib.licenses.bsd2; 29 mainProgram = "fasm"; 30 maintainers = [ lib.maintainers.iamanaws ]; 31 platforms = [ 32 "i686-linux" 33 "x86_64-linux" 34 ]; 35 }; 36})