about summary refs log tree commit diff
path: root/pkgs/development/compilers/spasm-ng/default.nix
blob: 9045710dc77064e2de314c3a499289ffe311f0e6 (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
31
32
33
{ lib, stdenv, fetchFromGitHub, gcc, gmp, openssl, zlib }:

stdenv.mkDerivation rec {
  pname = "spasm-ng";

  version = "unstable-2020-08-03";

  src = fetchFromGitHub {
    owner = "alberthdev";
    repo = "spasm-ng";
    rev = "221898beff2442f459b80ab89c8e1035db97868e";
    sha256 = "0xspxmp2fir604b4xsk4hi1gjv61rnq2ypppr7cj981jlhicmvjj";
  };

  nativeBuildInputs = [ gcc ];

  buildInputs = [ gmp openssl zlib ];

  enableParallelBuilding = true;

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

  meta = with lib; {
    homepage    = "https://github.com/alberthdev/spasm-ng";
    description = "Z80 assembler with extra features to support development for TI calculators";
    mainProgram = "spasm";
    license     = licenses.gpl2Plus;
    maintainers = with maintainers; [ siraben ];
    platforms   = platforms.unix;
  };
}