nixpkgs/pkgs/development/compilers/flasm/default.nix

31 lines
756 B
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, unzip, bison, flex, gperf, zlib }:
2020-10-27 07:51:02 +00:00
stdenv.mkDerivation rec {
pname = "flasm";
version = "1.64";
src = fetchzip {
url = "https://www.nowrap.de/download/flasm16src.zip";
sha256 = "03hvxm66rb6rjwbr07hc3k7ia5rim2xlhxbd9qmcai9xwmyiqafg";
stripRoot = false;
};
2021-02-16 09:35:04 +00:00
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
2020-10-27 07:51:02 +00:00
nativeBuildInputs = [ unzip bison flex gperf ];
buildInputs = [ zlib ];
installPhase = ''
install -Dm755 flasm -t $out/bin
'';
meta = with lib; {
2020-10-27 07:51:02 +00:00
description = "Assembler and disassembler for Flash (SWF) bytecode";
homepage = "http://flasm.sourceforge.net/";
license = licenses.bsd2;
maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
};
}