fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchzip,
5 unzip,
6 fetchpatch,
7 bison,
8 flex,
9 gperf,
10 zlib,
11}:
12
13stdenv.mkDerivation {
14 pname = "flasm";
15 version = "1.64";
16
17 src = fetchzip {
18 url = "https://www.nowrap.de/download/flasm16src.zip";
19 sha256 = "03hvxm66rb6rjwbr07hc3k7ia5rim2xlhxbd9qmcai9xwmyiqafg";
20 stripRoot = false;
21 };
22
23 patches = [
24 # Pull patch pending upstream inclusion for -fno-common toolchains:
25 # https://sourceforge.net/p/flasm/patches/2/
26 (fetchpatch {
27 name = "fno-common.patch";
28 url = "https://sourceforge.net/p/flasm/patches/2/attachment/0001-flasm-fix-build-on-gcc-10-fno-common.patch";
29 sha256 = "0ic7k1mmyvhpnxam89dbg8i9bfzk70zslfdxgpmkszx097bj1hv6";
30 })
31 ];
32
33 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
34
35 nativeBuildInputs = [
36 unzip
37 bison
38 flex
39 gperf
40 ];
41
42 buildInputs = [ zlib ];
43
44 installPhase = ''
45 install -Dm755 flasm -t $out/bin
46 '';
47
48 meta = {
49 description = "Assembler and disassembler for Flash (SWF) bytecode";
50 mainProgram = "flasm";
51 homepage = "https://flasm.sourceforge.net/";
52 license = lib.licenses.bsd2;
53 maintainers = with lib.maintainers; [ siraben ];
54 platforms = lib.platforms.all;
55 };
56}