1{ lib, stdenv, fetchFromGitHub, gcc, gmp, openssl, zlib }:
2
3stdenv.mkDerivation rec {
4 pname = "spasm-ng";
5
6 version = "unstable-2020-08-03";
7
8 src = fetchFromGitHub {
9 owner = "alberthdev";
10 repo = "spasm-ng";
11 rev = "221898beff2442f459b80ab89c8e1035db97868e";
12 sha256 = "0xspxmp2fir604b4xsk4hi1gjv61rnq2ypppr7cj981jlhicmvjj";
13 };
14
15 nativeBuildInputs = [ gcc ];
16
17 buildInputs = [ gmp openssl zlib ];
18
19 enableParallelBuilding = true;
20
21 installPhase = ''
22 install -Dm755 spasm -t $out/bin
23 '';
24
25 meta = with lib; {
26 homepage = "https://github.com/alberthdev/spasm-ng";
27 description = "Z80 assembler with extra features to support development for TI calculators";
28 license = licenses.gpl2Plus;
29 maintainers = with maintainers; [ siraben ];
30 platforms = platforms.unix;
31 };
32}