about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/flasm/default.nix
blob: 9393d4fc59f4a5caff30e6f154d8bd9a1ab43a62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchzip, unzip, bison, flex, gperf, zlib }:

stdenv.mkDerivation rec {
  pname = "flasm";
  version = "1.64";

  src = fetchzip {
    url = "https://www.nowrap.de/download/flasm16src.zip";
    sha256 = "03hvxm66rb6rjwbr07hc3k7ia5rim2xlhxbd9qmcai9xwmyiqafg";
    stripRoot = false;
  };

  makeFlags = [ "CC=cc" ];

  nativeBuildInputs = [ unzip bison flex gperf ];

  buildInputs = [ zlib ];

  installPhase = ''
    install -Dm755 flasm -t $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Assembler and disassembler for Flash (SWF) bytecode";
    homepage = "http://flasm.sourceforge.net/";
    license = licenses.bsd2;
    maintainers = with maintainers; [ siraben ];
    platforms = platforms.all;
  };
}