Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenvNoCC, 3 lib, 4 fetchurl, 5}: 6 7stdenvNoCC.mkDerivation (finalAttrs: { 8 pname = "fasm-bin"; 9 version = "1.73.32"; 10 11 src = fetchurl { 12 url = "https://flatassembler.net/fasm-${finalAttrs.version}.tgz"; 13 hash = "sha256-WVXL4UNWXa9e7K3MSS0CXK3lczgog9V4XUoYChvvym8="; 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/download.php"; 27 license = lib.licenses.bsd2; 28 mainProgram = "fasm"; 29 maintainers = with lib.maintainers; [ orivej ]; 30 platforms = [ 31 "i686-linux" 32 "x86_64-linux" 33 ]; 34 }; 35})